Skip to content

Commit 37400d9

Browse files
authored
Make extension/cuda:caller_stream fbcode-only
Differential Revision: D112930632 Pull Request resolved: #21104
1 parent b3ac2df commit 37400d9

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

extension/cuda/BUCK

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# Any targets that should be shared between fbcode and xplat must be defined in
2-
# targets.bzl. This file can contain xplat-only targets.
2+
# 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").
38

9+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target")
410
load(":targets.bzl", "define_common_targets")
511

612
oncall("executorch")
713

8-
define_common_targets()
14+
fbcode_target(_kind = define_common_targets,)

0 commit comments

Comments
 (0)