Skip to content

try fix ROCm build#177

Open
mofeing wants to merge 3 commits into
mainfrom
ss/try-fix-rocm
Open

try fix ROCm build#177
mofeing wants to merge 3 commits into
mainfrom
ss/try-fix-rocm

Conversation

@mofeing
Copy link
Copy Markdown
Collaborator

@mofeing mofeing commented May 29, 2026

tries to fix the following error https://github.com/EnzymeAD/Enzyme-JAX/actions/runs/26634414443/job/78491490909?pr=2467#step:10:1782

ERROR: /workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/xla/xla/stream_executor/rocm/BUILD:1114:14: Compiling xla/stream_executor/rocm/cub_sort_kernel_rocm_impl.cu.cc failed: absolute path inclusion(s) found in rule '@@xla//xla/stream_executor/rocm:cub_sort_kernel_rocm_type_u64':
[11:35:52] the source file 'xla/stream_executor/rocm/cub_sort_kernel_rocm_impl.cu.cc' includes the following non-builtin files with absolute paths (if these are builtin files, make sure these paths are in your toolchain):
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__clang_hip_runtime_wrapper.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/cuda_wrappers/cmath'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/cuda_wrappers/bits/c++config.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/stddef.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__stddef_size_t.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__stddef_wchar_t.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__stddef_null.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__clang_hip_libdevice_declares.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__clang_hip_math.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/limits.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/stdint.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__clang_hip_stdlib.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__clang_cuda_math_forward_declares.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__clang_hip_cmath.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__clang_cuda_complex_builtins.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/cuda_wrappers/algorithm'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/cuda_wrappers/new'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/cuda_wrappers/complex'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__stddef_header_macro.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__stddef_ptrdiff_t.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__stddef_nullptr_t.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__stddef_max_align_t.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__stddef_offsetof.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/stdarg.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__stdarg___gnuc_va_list.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/__stddef_wint_t.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/cuda_wrappers/bits/basic_string.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/cuda_wrappers/bits/basic_string.tcc'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/cuda_wrappers/bits/shared_ptr_base.h'
[11:35:52]   '/workspace/bazel_root/097636303b1142f44508c1d8e3494e4b/external/local_config_rocm/rocm/rocm_dist/lib/llvm/lib/clang/22/include/sanitizer/tsan_interface.h'

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

Successfully merging this pull request may close these issues.

1 participant