You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there another version of thrust installed on your system at /usr/include/thrust? Seems to be conflicting with the thrust port expected in /opt/rocm.
🐛 Describe the bug
FAILED: caffe2/CMakeFiles/torch_hip.dir//aten/src/ATen/native/hip/torch_hip_generated_CumprodKernel.hip.o /home/hmsjwzb/work/pytorch/build/caffe2/CMakeFiles/torch_hip.dir//aten/src/ATen/native/hip/torch_hip_generated_CumprodKernel.hip.o cd /home/hmsjwzb/work/pytorch/build/caffe2/CMakeFiles/torch_hip.dir//aten/src/ATen/native/hip && /home/hmsjwzb/miniconda3/bin/cmake -E make_directory /home/hmsjwzb/work/pytorch/build/caffe2/CMakeFiles/torch_hip.dir//aten/src/ATen/native/hip/. && /home/hmsjwzb/miniconda3/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=RELEASE -D generated_file:STRING=/home/hmsjwzb/work/pytorch/build/caffe2/CMakeFiles/torch_hip.dir//aten/src/ATen/native/hip/./torch_hip_generated_CumprodKernel.hip.o -P /home/hmsjwzb/work/pytorch/build/caffe2/CMakeFiles/torch_hip.dir//aten/src/ATen/native/hip/torch_hip_generated_CumprodKernel.hip.o.cmake In file included from /home/hmsjwzb/work/pytorch/aten/src/ATen/native/hip/CumprodKernel.hip:3: In file included from /home/hmsjwzb/work/pytorch/aten/src/ATen/core/TensorBase.h:6: In file included from /home/hmsjwzb/work/pytorch/c10/core/ScalarType.h:8: In file included from /home/hmsjwzb/work/pytorch/c10/util/Float8_e5m2.h:17: In file included from /home/hmsjwzb/work/pytorch/c10/util/Half.h:16: In file included from /home/hmsjwzb/work/pytorch/c10/util/complex.h:8: In file included from /usr/include/thrust/complex.h:1030: In file included from /usr/include/thrust/detail/complex/complex.inl:22: In file included from /usr/include/thrust/type_traits/is_trivially_relocatable.h:19: In file included from /usr/include/thrust/type_traits/is_contiguous_iterator.h:27: In file included from /usr/include/thrust/detail/type_traits/pointer_traits.h:23: In file included from /usr/include/thrust/iterator/iterator_traits.h:62: /usr/include/thrust/iterator/detail/device_system_tag.h:23:10: fatal error: 'thrust/system/THRUST_DEVICE_SYSTEM_NAMESPACE/detail/execution_policy.h' file not found 23 | #include THRUST_DEVICE_SYSTEM_TAG_HEADER | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/thrust/iterator/detail/device_system_tag.h:22:43: note: expanded from macro 'THRUST_DEVICE_SYSTEM_TAG_HEADER' 22 | #define THRUST_DEVICE_SYSTEM_TAG_HEADER <THRUST_DEVICE_SYSTEM_ROOT/detail/execution_policy.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :42:1: note: expanded from here 42 | <thrust/system/THRUST_DEVICE_SYSTEM_NAMESPACE/detail/execution_policy.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated when compiling for host. failed to execute:/opt/rocm/llvm/bin/clang++ --offload-arch=gfx1100 --cuda-host-only -O3 -M -x hip /home/hmsjwzb/work/pytorch/aten/src/ATen/native/hip/CumprodKernel.hip -o "/home/hmsjwzb/work/pytorch/build/caffe2/CMakeFiles/torch_hip.dir//aten/src/ATen/native/hip/torch_hip_generated_CumprodKernel.hip.o.depend.pre" -fclang-abi-compat=17 -DUSE_NCCL -DUSE_ROCM -D__HIP_PLATFORM_AMD -DUSE_FLASH_ATTENTION -DUSE_MEM_EFF_ATTENTION -DUSE_C10D_NCCL -DTORCH_HIP_BUILD_MAIN_LIB -DROCM_VERSION=60202 -DTORCH_HIP_VERSION=602 -DONNX_ML=1 -DONNXIFI_ENABLE_EXT=1 -DONNX_NAMESPACE=onnx_torch -DHAVE_MMAP=1 -D_FILE_OFFSET_BITS=64 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DHAVE_MALLOC_USABLE_SIZE=1 -DUSE_EXTERNAL_MZCRC -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DFLASHATTENTION_DISABLE_ALIBI -D__HIP_PLATFORM_AMD=1 -DUSE_PROF_API=1 -DAT_PER_OPERATOR_HEADERS -DUSE_DISTRIBUTED -DUSE_C10D_GLOO -DUSE_RPC -DUSE_TENSORPIPE -D__HIP_PLATFORM_AMD -DFMT_HEADER_ONLY=1 -fPIC -D__HIP_PLATFORM_AMD=1 -DCUDA_HAS_FP16=1 -DUSE_ROCM -D__HIP_NO_HALF_OPERATORS=1 -D__HIP_NO_HALF_CONVERSIONS__=1 -DTORCH_HIP_VERSION=602 -Wno-shift-count-negative -Wno-shift-count-overflow -Wno-duplicate-decl-specifier -DCAFFE2_USE_MIOPEN -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_HIP -std=c++17 -DHIPBLAS_V2 -DHIP_NEW_TYPE_ENUMS -fno-gpu-rdc -I/home/hmsjwzb/work/pytorch/build/aten/src -I/home/hmsjwzb/work/pytorch/aten/src -I/home/hmsjwzb/work/pytorch/build -I/home/hmsjwzb/work/pytorch -I/opt/rocm-6.2.2/include -I/home/hmsjwzb/work/pytorch/build/third_party/gloo -I/home/hmsjwzb/work/pytorch/cmake/../third_party/gloo -I/home/hmsjwzb/work/pytorch/cmake/../third_party/tensorpipe/third_party/libuv/include -I/home/hmsjwzb/work/pytorch/cmake/../third_party/googletest/googlemock/include -I/home/hmsjwzb/work/pytorch/cmake/../third_party/googletest/googletest/include -I/home/hmsjwzb/work/pytorch/third_party/protobuf/src -I/home/hmsjwzb/work/pytorch/third_party/XNNPACK/include -I/home/hmsjwzb/work/pytorch/cmake/../third_party/benchmark/include -I/home/hmsjwzb/work/pytorch/third_party/ittapi/include -I/home/hmsjwzb/work/pytorch/cmake/../third_party/eigen -I/home/hmsjwzb/work/pytorch/third_party/onnx -I/home/hmsjwzb/work/pytorch/build/third_party/onnx -I/home/hmsjwzb/work/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl -I/home/hmsjwzb/work/pytorch/third_party/ideep/include -I/home/hmsjwzb/work/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl -I/home/hmsjwzb/work/pytorch/nlohmann -I/home/hmsjwzb/work/pytorch/INTERFACE -I/home/hmsjwzb/work/pytorch/third_party/nlohmann/include -I/opt/rocm/include -I/opt/rocm/hcc/include -I/opt/rocm/rocblas/include -I/opt/rocm/hipsparse/include -I/opt/rocm/include/rccl/ -I/home/hmsjwzb/work/pytorch/aten/src/THH -I/home/hmsjwzb/work/pytorch/aten/src/ATen/hip -I/home/hmsjwzb/work/pytorch/aten/src/ATen/../../../third_party/composable_kernel/include -I/home/hmsjwzb/work/pytorch/aten/src/ATen/../../../third_party/composable_kernel/library/include -I/home/hmsjwzb/work/pytorch/third_party/fmt/include -I/home/hmsjwzb/work/pytorch/aten/src -I/home/hmsjwzb/work/pytorch/build/caffe2/aten/src -I/home/hmsjwzb/work/pytorch/build/aten/src -I/home/hmsjwzb/work/pytorch/aten/src -I/home/hmsjwzb/work/pytorch/aten/src/ATen/.. -I/home/hmsjwzb/work/pytorch/torch/include -I/opt/rocm-6.2.2/include -I/opt/rocm/include -I/home/hmsjwzb/work/pytorch/c10/hip/../.. -I/home/hmsjwzb/work/pytorch/build -I/home/hmsjwzb/work/pytorch/c10/../ -I/home/hmsjwzb/work/pytorch/build -I/home/hmsjwzb/work/pytorch/torch/csrc/api -I/home/hmsjwzb/work/pytorch/torch/csrc/api/include -I/home/hmsjwzb/work/pytorch/third_party/protobuf/src -I/opt/rocm-6.2.2/include -I/opt/rocm/include -I/opt/rocm-6.2.2/include -I/opt/rocm-6.2.2/include -I/opt/rocm-6.2.2/include -I/opt/rocm-6.2.2/include -I/opt/rocm-6.2.2/include -I/opt/rocm-6.2.2/include -I/opt/rocm-6.2.2/include/hiprand -I/opt/rocm-6.2.2/include -I/opt/rocm-6.2.2/include -I/opt/rocm-6.2.2/include -I/opt/rocm-6.2.2/include -I/opt/rocm-6.2.2/include -I/opt/rocm/include -I/home/hmsjwzb/work/pytorch/build/third_party/gloo/hip -I/home/hmsjwzb/miniconda3/include -I/home/hmsjwzb/work/pytorch/build/aten/src -I/home/hmsjwzb/work/pytorch/aten/src -I/home/hmsjwzb/work/pytorch/build -I/home/hmsjwzb/work/pytorch -I/opt/rocm-6.2.2/include -I/home/hmsjwzb/work/pytorch/build/third_party/gloo -I/home/hmsjwzb/work/pytorch/cmake/../third_party/gloo -I/home/hmsjwzb/work/pytorch/cmake/../third_party/tensorpipe/third_party/libuv/include -I/home/hmsjwzb/work/pytorch/cmake/../third_party/googletest/googlemock/include -I/home/hmsjwzb/work/pytorch/cmake/../third_party/googletest/googletest/include -I/home/hmsjwzb/work/pytorch/third_party/protobuf/src -I/home/hmsjwzb/work/pytorch/third_party/XNNPACK/include -I/home/hmsjwzb/work/pytorch/cmake/../third_party/benchmark/include -I/home/hmsjwzb/work/pytorch/third_party/ittapi/include -I/home/hmsjwzb/work/pytorch/cmake/../third_party/eigen -I/home/hmsjwzb/work/pytorch/third_party/onnx -I/home/hmsjwzb/work/pytorch/build/third_party/onnx -I/home/hmsjwzb/work/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl -I/home/hmsjwzb/work/pytorch/third_party/ideep/include -I/home/hmsjwzb/work/pytorch/nlohmann -I/home/hmsjwzb/work/pytorch/INTERFACE -I/home/hmsjwzb/work/pytorch/third_party/nlohmann/include CMake Error at torch_hip_generated_CumprodKernel.hip.o.cmake:146 (message): Error generating /home/hmsjwzb/work/pytorch/build/caffe2/CMakeFiles/torch_hip.dir/__/aten/src/ATen/native/hip/./torch_hip_generated_CumprodKernel.hip.o ninja: build stopped: subcommand failed. Building wheel torch-2.6.0a0+gitd8f22a1 -- Building version 2.6.0a0+gitd8f22a1 cmake --build . --target install --config Release
Versions
PyTorch version: 2.5.0+rocm6.2 Is debug build: False CUDA used to build PyTorch: N/A ROCM used to build PyTorch: 6.2.41133-dd7f95766 OS: Ubuntu 22.04.2 LTS (x86_64) GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Clang version: 18.1.8 (/home/hmsjwzb/code/llvm-project/clang 443e23eed24d9533566f189ef25154263756a36d) CMake version: version 3.26.4 Libc version: glibc-2.35 Python version: 3.10.15+ (heads/3.10:0c5fc272175, Sep 24 2024, 11:33:24) [GCC 11.4.0] (64-bit runtime) Python platform: Linux-6.8.0-47-generic-x86_64-with-glibc2.35 Is CUDA available: True CUDA runtime version: Could not collect CUDA_MODULE_LOADING set to: LAZY GPU models and configuration: Radeon RX 7900 XTX (gfx1100) Nvidia driver version: Could not collect cuDNN version: Could not collect HIP runtime version: 6.2.41133 MIOpen runtime version: 3.2.0 Is XNNPACK available: True CPU: Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 46 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 32 On-line CPU(s) list: 0-31 Vendor ID: GenuineIntel Model name: 13th Gen Intel(R) Core(TM) i9-13900 CPU family: 6 Model: 183 Thread(s) per core: 2 Core(s) per socket: 24 Socket(s): 1 Stepping: 1 CPU max MHz: 5600.0000 CPU min MHz: 800.0000 BogoMIPS: 3993.60 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect user_shstk avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi vnmi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr ibt flush_l1d arch_capabilities Virtualization: VT-x L1d cache: 896 KiB (24 instances) L1i cache: 1.3 MiB (24 instances) L2 cache: 32 MiB (12 instances) L3 cache: 36 MiB (1 instance) NUMA node(s): 1 NUMA node0 CPU(s): 0-31 Vulnerability Gather data sampling: Not affected Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Not affected Vulnerability Reg file data sampling: Mitigation; Clear Register File Vulnerability Retbleed: Not affected Vulnerability Spec rstack overflow: Not affected Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Enhanced / Automatic IBRS; IBPB conditional; RSB filling; PBRSB-eIBRS SW sequence; BHI BHI_DIS_S Vulnerability Srbds: Not affected Vulnerability Tsx async abort: Not affected
Versions of relevant libraries: [pip3] numpy==1.26.3 [pip3] nvidia-cublas-cu12==12.4.5.8 [pip3] nvidia-cuda-cupti-cu12==12.4.127 [pip3] nvidia-cuda-nvrtc-cu12==12.4.127 [pip3] nvidia-cuda-runtime-cu12==12.4.127 [pip3] nvidia-cudnn-cu12==9.1.0.70 [pip3] nvidia-cufft-cu12==11.2.1.3 [pip3] nvidia-curand-cu12==10.3.5.147 [pip3] nvidia-cusolver-cu12==11.6.1.9 [pip3] nvidia-cusparse-cu12==12.3.1.170 [pip3] nvidia-nccl-cu12==2.21.5 [pip3] nvidia-nvjitlink-cu12==12.4.127 [pip3] nvidia-nvtx-cu12==12.4.127 [pip3] pytorch-triton-rocm==3.1.0 [pip3] torch==2.5.0+rocm6.2 [pip3] torchaudio==2.5.0+rocm6.2 [pip3] torchvision==0.20.0+rocm6.2 [pip3] triton==3.1.0 [conda] magma-cuda121 2.6.1 1 pytorch
cc @jeffdaily @jithunnair-amd
The text was updated successfully, but these errors were encountered: