We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3ac2df commit 37400d9Copy full SHA for 37400d9
1 file changed
extension/cuda/BUCK
@@ -1,8 +1,14 @@
1
# Any targets that should be shared between fbcode and xplat must be defined in
2
-# targets.bzl. This file can contain xplat-only targets.
+# targets.bzl. This file can contain fbcode-only targets.
3
+#
4
+# caller_stream unconditionally includes <cuda_runtime.h>, whose headers only
5
+# resolve through the fbcode cell's CUDA third-party. Like the other executorch
6
+# CUDA targets, it must therefore be defined fbcode-only; defining it in the
7
+# xplat cell produces a target that cannot compile ("cuda_runtime.h not found").
8
9
+load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target")
10
load(":targets.bzl", "define_common_targets")
11
12
oncall("executorch")
13
-define_common_targets()
14
+fbcode_target(_kind = define_common_targets,)
0 commit comments