Open samuela opened 9 months ago
I have worked around this by adding nvcc headers into the build environment, but I'll leave the issue open as it seems to suggest that this is a bug in the bazel rule definition.
I'm now getting a different error:
ERROR: /build/output/external/xla/xla/service/gpu/BUILD:1449:23: Compiling xla/service/gpu/cub_sort_kernel.cu.cc failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command (from target @xla//xla/service/gpu:cub_sort_kernel_u64_b64) external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-opt/bin/external/xla/xla/service/gpu/_objs/cub_sort_kernel_u64_b64/cub_sort_kernel.cu.pic.d ... (remaining 166 arguments skipped)
/build/output/execroot/__main__/external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc:44: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
import pipes
In file included from external/xla/xla/service/gpu/cub_sort_kernel.cu.cc:22:
external/xla/xla/service/gpu/gpu_prim_cuda.h:20:10: fatal error: cub/block/block_load.cuh: No such file or directory
20 | #include "cub/block/block_load.cuh"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Target //jaxlib/tools:build_wheel failed to build
But AFAIK CUB is not mentioned as a build dependency anywhere in the jax/jaxlib documentation. Is this intended? Perhaps my build configuration is flawed somehow?
Description
I'm getting a Bazel error when attempting to build jaxlib version 0.4.24:
System info (python version, jaxlib version, accelerator, etc.)
happy to provide any other info that might be useful in debugging!