Skip to content

[Issue] Rock Pytorch builds failed with error '!rocprim::is_floating_point<__half>::value' was not satisfied [with T = __half] #4024

@chiranjeevipattigidi

Description

@chiranjeevipattigidi
instantiation of function template specialization 'rocprim::radix_sort_pairs<rocprim::default_config, const __half *, __half *, const at::cuda::cub::detail::OpaqueType<8> *, at::cuda::cub::detail::OpaqueType<8> *, long, __half>' requested here
2026-01-22T08:05:58.3382025Z    56 |         return ::rocprim::radix_sort_pairs(d_temp_storage,
2026-01-22T08:05:58.3382552Z       |                           ^
2026-01-22T08:05:58.3384265Z /__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/hip/cub-RadixSortPairs.cuh:49:59: note: in instantiation of function template specialization 'hipcub::DeviceRadixSort::SortPairs<__half, at::cuda::cub::detail::OpaqueType<8>, long>' requested here
2026-01-22T08:05:58.3386164Z    49 |         NO_ROCM(at_cuda_detail)::hipcub::DeviceRadixSort::SortPairs,
2026-01-22T08:05:58.3386785Z       |                                                           ^
2026-01-22T08:05:58.3388097Z /__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/hip/cub.cuh:46:17: note: expanded from macro 'CUB_WRAPPER'
2026-01-22T08:05:58.3389191Z    46 |   AT_CUDA_CHECK(func(nullptr, temp_storage_bytes, __VA_ARGS__));          \
2026-01-22T08:05:58.3389813Z       |                 ^
2026-01-22T08:05:58.3390712Z /__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/hip/Exceptions.h:176:43: note: expanded from macro 'AT_CUDA_CHECK'
2026-01-22T08:05:58.3391798Z   176 | #define AT_CUDA_CHECK(EXPR) C10_HIP_CHECK(EXPR)
2026-01-22T08:05:58.3392308Z       |                                           ^
2026-01-22T08:05:58.3393256Z /__w/TheRock/TheRock/external-builds/pytorch/pytorch/c10/hip/HIPException.h:30:30: note: expanded from macro 'C10_HIP_CHECK'
2026-01-22T08:05:58.3394598Z    30 |     const hipError_t __err = EXPR;                                 \
2026-01-22T08:05:58.3395179Z       |                              ^
2026-01-22T08:05:58.3396497Z /opt/python/cp312-cp312/lib/python3.12/site-packages/_rocm_sdk_devel/include/rocprim/device/detail/device_radix_sort.hpp:621:6: note: candidate template ignored: substitution failure [with T = __half]
2026-01-22T08:05:58.3398252Z   621 | auto compare_nan_sensitive(const T& a, const T& b) ->
2026-01-22T08:05:58.3398758Z       |      ^
2026-01-22T08:05:58.3400745Z /opt/python/cp312-cp312/lib/python3.12/site-packages/_rocm_sdk_devel/include/rocprim/device/detail/device_radix_sort.hpp:653:6: note: candidate template ignored: requirement '!rocprim::is_floating_point<__half>::value' was not satisfied [with T = __half]
2026-01-22T08:05:58.3402609Z   653 | auto compare_nan_sensitive(const T& a, const T& b) ->
2026-01-22T08:05:58.3403156Z       |      ^
2026-01-22T08:05:58.3403590Z 2 warnings and 4 errors generated when compiling for gfx1030.
2026-01-22T08:05:58.3460839Z failed to execute:/opt/python/cp312-cp312/lib/python3.12/site-packages/_rocm_sdk_devel/llvm/bin/clang++  --offload-arch=gfx1030 --offload-arch=gfx1032 -O3  -c -x hip /__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/hip/cub-RadixSortPairs-scalars.hip -o "/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/caffe2/CMakeFiles/torch_hip.dir/__/aten/src/ATen/hip/./torch_hip_generated_cub-RadixSortPairs-scalars.hip.o" --offload-compress -std=c++17 --rocm-device-lib-path=/opt/python/cp312-cp312/lib/python3.12/site-packages/_rocm_sdk_devel/lib/llvm/amdgcn/bitcode -fclang-abi-compat=17 -DUSE_NCCL -DUSE_ROCM -D__HIP_PLATFORM_AMD__ -DUSE_C10D_NCCL -DTORCH_HIP_BUILD_MAIN_LIB -DROCM_VERSION=71200 -DTORCH_HIP_VERSION=702 -DUSE_LAYERNORM_FAST_RECIPROCAL -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 -DHAVE_POSIX_FALLOCATE=1 -DUSE_EXTERNAL_MZCRC -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -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__ -DHIPBLASLT_USE_ROCROLLER -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=702 -Wno-shift-count-negative -Wno-shift-count-overflow -DCAFFE2_USE_MIOPEN -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_HIP -DHIPBLAS_V2 -DHIP_ENABLE_WARP_SYNC_BUILTINS -DHIPBLASLT_OUTER_VEC -DUSE_ROCM_CK_GEMM -fno-gpu-rdc -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/aten/src -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/third_party/gloo -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/cmake/../third_party/gloo -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/cmake/../third_party/tensorpipe/third_party/libuv/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/cmake/../third_party/googletest/googlemock/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/cmake/../third_party/googletest/googletest/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/protobuf/src -I/opt/python/cp312-cp312/lib/python3.12/site-packages/_rocm_sdk_devel/lib/host-math/include/openblas -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/XNNPACK/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/ittapi/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/cmake/../third_party/eigen -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/ideep/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/nlohmann -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/INTERFACE -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/nlohmann/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/moodycamel -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/INTERFACE -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/concurrentqueue -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/THH -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/hip -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/../../../third_party/composable_kernel/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/../../../third_party/composable_kernel/library/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/../../../third_party/composable_kernel/example/ck_tile/01_fmha -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/caffe2/aten/src/ATen/composable_kernel -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/../../../third_party/aiter/csrc/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/fmt/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/caffe2/aten/src -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/aten/src -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/.. -I/opt/python/cp312-cp312/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/python/cp312-cp312/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/c10/hip/../.. -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/c10/../ -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/torch/csrc/api -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/torch/csrc/api/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/protobuf/src -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/python/cp312-cp312/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include/hiprand -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include/rocrand -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include/hipsparse -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/python/cp312-cp312/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/python/cp312-cp312/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/opt/python/cp312-cp312/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/third_party/gloo/hip -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/aten/src -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch -I/opt/_internal/cpython-3.12.10/lib/python3.12/site-packages/_rocm_sdk_devel/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/third_party/gloo -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/cmake/../third_party/gloo -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/cmake/../third_party/tensorpipe/third_party/libuv/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/cmake/../third_party/googletest/googlemock/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/cmake/../third_party/googletest/googletest/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/protobuf/src -I/opt/python/cp312-cp312/lib/python3.12/site-packages/_rocm_sdk_devel/lib/host-math/include/openblas -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/XNNPACK/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/ittapi/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/cmake/../third_party/eigen -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/ideep/mkl-dnn/include/oneapi/dnnl -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/ideep/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/nlohmann -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/INTERFACE -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/nlohmann/include -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/moodycamel -I/__w/TheRock/TheRock/external-builds/pytorch/pytorch/third_party/concurrentqueue
2026-01-22T08:05:58.3518036Z CMake Error at torch_hip_generated_cub-RadixSortPairs-scalars.hip.o.cmake:200 (message):
2026-01-22T08:05:58.3518818Z   Error generating file
2026-01-22T08:05:58.3520237Z   /__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/caffe2/CMakeFiles/torch_hip.dir/__/aten/src/ATen/hip/./torch_hip_generated_cub-RadixSortPairs-scalars.hip.o
2026-01-22T08:05:58.3521124Z 
2026-01-22T08:05:58.3521129Z 
2026-01-22T08:05:58.6251954Z [7176/8061] Building HIPCC object caffe2/CMakeFiles/torch_hip.dir/__/aten/src/ATen/native/hip/torch_hip_generated_CrossKernel.hip.o
2026-01-22T08:05:58.6253777Z In file included from /__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/native/hip/CrossKernel.hip:4:
2026-01-22T08:05:58.6255236Z In file included from /__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/native/Cross.h:3:
2026-01-22T08:05:58.6257136Z In file included from /__w/TheRock/TheRock/external-builds/pytorch/pytorch/aten/src/ATen/native/DispatchStub.h:3:
2026-01-22T08:05:58.6258567Z In file included from /__w/TheRock/TheRock/external-builds/pytorch/pytorch/c10/core/DeviceType.h:3:
2026-01-22T08:05:58.6259885Z In file included from /__w/TheRock/TheRock/external-builds/pytorch/pytorch/c10/macros/Export.h:1:
2026-01-22T08:05:58.6261660Z /__w/TheRock/TheRock/external-builds/pytorch/pytorch/torch/headeronly/macros/Export.h:134:9: warning: 'TORCH_HIP_CPP_API' macro redefined [-Wmacro-redefined]
2026-01-22T08:05:58.6263067Z   134 | #define TORCH_HIP_CPP_API C10_EXPORT
2026-01-22T08:05:58.6263610Z       |         ^
2026-01-22T08:05:58.6264827Z /__w/TheRock/TheRock/external-builds/pytorch/pytorch/torch/headeronly/macros/Export.h:129:9: note: previous definition is here
2026-01-22T08:05:58.6265909Z   129 | #define TORCH_HIP_CPP_API C10_IMPORT
2026-01-22T08:05:58.6266348Z       |         ^
2026-01-22T08:05:58.6267335Z /__w/TheRock/TheRock/external-builds/pytorch/pytorch/torch/headeronly/macros/Export.h:135:9: warning: 'TORCH_HIP_API' macro redefined [-Wmacro-redefined]
2026-01-22T08:05:58.6268771Z   135 | #define TORCH_HIP_API C10_EXPORT
2026-01-22T08:05:58.6269190Z       |         ^
2026-01-22T08:05:58.6270019Z /__w/TheRock/TheRock/external-builds/pytorch/pytorch/torch/headeronly/macros/Export.h:130:9: note: previous definition is here
2026-01-22T08:05:58.6270971Z   130 | #define TORCH_HIP_API C10_IMPORT


Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions