Hit with "clang-11: error: Unsupported CUDA gpu architecture: gfx900:xnack-" while making examples
Closed this issue · 2 comments
aurotripathy commented
I want to build the examples and I'm following the instructions in the README and my error message is below.
Seems closest to issue #116 where use of "-x hip" resolved it, but I need help on where to make the change.
root@b5f40797d3af:~/rocThrust/build# make
--
-- ******** Summary ********
-- General:
-- System : Linux
-- HIP ROOT :
-- C++ compiler : /opt/rocm/hip/bin/hipcc
-- C++ compiler version : 11.0.0
-- CXX flags : -Wno-unused-command-line-argument
-- Build type : Release
-- Install prefix : /opt/rocm
-- Device targets : gfx900:xnack-;gfx906:xnack-;gfx908:xnack-
--
-- DISABLE_WERROR : ON
-- DOWNLOAD_ROCPRIM : OFF
-- BUILD_TEST : OFF
-- BUILD_EXAMPLES : ON
-- BUILD_BENCHMARKS : OFF
-- Building examples
-- Configuring done
-- Generating done
-- Build files have been written to: /root/rocThrust/build
[ 1%] Building CXX object examples/CMakeFiles/example_thrust_monte_carlo.dir/monte_carlo.cu.o
clang-11: error: Unsupported CUDA gpu architecture: gfx900:xnack-
clang-11: error: Unsupported CUDA gpu architecture: gfx906:xnack-
clang-11: error: Unsupported CUDA gpu architecture: gfx908:xnack-
examples/CMakeFiles/example_thrust_monte_carlo.dir/build.make:62: recipe for target 'examples/CMakeFiles/example_thrust_monte_carlo.dir/monte_carlo.cu.o' failed
make[2]: *** [examples/CMakeFiles/example_thrust_monte_carlo.dir/monte_carlo.cu.o] Error 1
CMakeFiles/Makefile2:197: recipe for target 'examples/CMakeFiles/example_thrust_monte_carlo.dir/all' failed
make[1]: *** [examples/CMakeFiles/example_thrust_monte_carlo.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
aurotripathy commented
Master branch build fine. Closing...
aurotripathy commented
Master branch build fine. Closing...