Mohamed Amine Zghal

Results 24 comments of Mohamed Amine Zghal

> > [@beckerhe](https://github.com/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....

@ybaturina For solving problems related to CUDA headers, I just use, as you suggest, HERMETIC_CUDA_VERSION with LOCAL_CUDA_PATH. But now, I got problems related to c++ headers: math.h not found.

@ybaturina This is my build function for JAX: ``` export HERMETIC_CUDA_VERSION="12.8.1" export HERMETIC_CUDNN_VERSION="9.8.0" export HERMETIC_CUDA_COMPUTE_CAPABILITIES=sm_50,sm_52,sm_53,sm_60,sm_61,sm_62,sm_70,sm_72,sm_75,sm_80,sm_86,sm_87,sm_89,sm_90,sm_90a,compute_90 export JAXLIB_RELEASE=$pkgver cd $srcdir/jax-jax-v$pkgver build/build.py build \ --bazel_options="--repo_env=HERMETIC_CUDA_COMPUTE_CAPABILITIES=${HERMETIC_CUDA_COMPUTE_CAPABILITIES}" \ --bazel_options='--repo_env=HERMETIC_CUDA_VERSION="12.8.1"' \ --bazel_options='--repo_env=HERMETIC_CUDNN_VERSION="9.8.0"' \ --bazel_options='--repo_env=LOCAL_CUDA_PATH=/opt/cuda' \...

@ybaturina I tried to isolate the command and use it with arguments (-I, -isystem, --gcc-toolchains, --sysroot) to check if it works but the build still fails

``` cc_toolchain_config( name = "cc-compiler-local-config", cpu = "local", builtin_include_directories = ["/usr/include/c++/14.2.1", "/usr/include/c++/14.2.1/x86_64-pc-linux-gnu", "/usr/include/c++/14.2.1/backward", "/usr/lib/clang/19/include", "/usr/local/include", "/usr/include", "/usr/lib/clang/19/share"], extra_no_canonical_prefixes_flags = [], host_compiler_path = "/usr/bin/clang-19", host_compiler_prefix = "/usr/bin", host_compiler_warnings = [ #...

@ybaturina does the build functions works for you?

@ybaturina I don't think that the problem come from C++ installation problem because when I remove `--build_cuda_with_clang --use_clang` options from build I got this error: external/xla/xla/tsl/cuda/cupti_stub.cc:16:10: fatal error: 'third_party/gpus/cuda/extras/CUPTI/include/cupti.h' file...

@ybaturina the downloaded methods works for me. The only problem happen when I use local cuda. Could you provide me the command that you use for local cuda?

@ybaturina Could you send me text file that has all the files exist under CUDA folders?