Commit d419aa8
Add missing evalue dep to test_cuda_mutable_state (forward fix for D108707549)
Summary:
Forward fix for D108707549 (cuda: add per-session mutable state rebinding, #20241).
The new `test_cuda_mutable_state` cpp_unittest fails to compile internally:
test/test_cuda_mutable_state.cpp -> cuda_delegate_handle.h
-> aoti_delegate_handle.h:12: fatal error:
'executorch/runtime/core/evalue.h' file not found
The test includes the delegate-handle header chain, which pulls in
<executorch/runtime/core/evalue.h>, but the test target's deps only list
//executorch/runtime/core:core (not :evalue). cuda_backend.cpp itself compiles
because it reaches evalue transitively through deps the test does not have
(e.g. runtime/backend:interface, exec_aten/util:tensor_util). On GitHub the
CMake build picks evalue.h up via broad include dirs, so this only surfaces in
the internal Buck build.
Fix: add //executorch/runtime/core:evalue to the test target's deps in both the
fbcode and xplat TARGETS.
Differential Revision: D1088294951 parent 218cc45 commit d419aa8
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
0 commit comments