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

Hermetic CUDA no longer respects TF_DOWNLOAD_CLANG #16866

Open
tchatow opened this issue Sep 6, 2024 · 2 comments
Open

Hermetic CUDA no longer respects TF_DOWNLOAD_CLANG #16866

tchatow opened this issue Sep 6, 2024 · 2 comments
Assignees

Comments

@tchatow
Copy link

tchatow commented Sep 6, 2024

The hermetic cuda toolchain with --config=cuda_clang always looks for a local clang. It is useful to be able to download a hermetic clang as well.

Even with the local cuda toolchain this option was somewhat broken since third_party/tsl/third_party/clang_toolchain/download_clang.bzl uses a Chromium clang built without Cuda support; I would patch this to download clang from https://github.com/llvm/llvm-project/releases instead.

@cheshire
Copy link
Member

@beckerhe to me it would conceptually make most sense to fix the entire toolchain by default and download it, instead of trying to build with the system compiler.

@johnnynunez
Copy link

@beckerhe to me it would conceptually make most sense to fix the entire toolchain by default and download it, instead of trying to build with the system compiler.

I'm getting the same error always in jax:
external/xla/xla/stream_executor/cuda/cuda_status.h:22:10: fatal error: 'third_party/gpus/cuda/include/cuda.h' file not found
#include "third_party/gpus/cuda/include/cuda.h"

python3 build/build.py --enable_cuda --enable_nccl=False --cuda_compute_capabilities=sm_87 --bazel_options=--repo_env=LOCAL_CUDA_PATH="/usr/local/cuda-12.2" --bazel_options=--repo_env=LOCAL_CUDNN_PATH="/usr/lib/aarch64-linux-gnu"

what i'm doing wrong?

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

4 participants