Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling with build --config nonccl fails #11596

Open
janpfeifer opened this issue Apr 17, 2024 · 1 comment
Open

Compiling with build --config nonccl fails #11596

janpfeifer opened this issue Apr 17, 2024 · 1 comment
Assignees

Comments

@janpfeifer
Copy link

To reproduce, as of last night (hash 5c3f217):

$ python configure.py --backend=CUDA --cuda_compute_capabilities="6.1,9.0"
$ bazel build //xla/...  --spawn_strategy=sandboxed --test_output=all
...
ERROR: /opt/bazel-cache/xla/xla/tsl/cuda/BUILD.bazel:277:11: no such target '@local_config_nccl//:nccl_headers': target 'nccl_headers' not declared in package '' defined by /opt/bazel-cache/_bazel_janpf/f47ea882d54bd691783fc588
c041daa9/external/local_config_nccl/BUILD (Tip: use `query "@local_config_nccl//:*"` to see all the targets in that package) and referenced by '//xla/tsl/cuda:nccl_stub'
...

While looking at the generated xla_configure.bazelrc I noticed the line:

build --config nonccl

Rerunning it with --nccl seems to get it to work (it is still compiling, but it passed that part):

$  python configure.py --backend=CUDA --cuda_compute_capabilities="6.1,9.0" --nccl
$ bazel build //xla/...  --spawn_strategy=sandboxed --test_output=all
...
@cheshire
Copy link
Member

@ddunl @PatriosTheGreat WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants