Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hit with "clang-11: error: Unsupported CUDA gpu architecture: gfx900:xnack-" while making examples #150

Closed
aurotripathy opened this issue Nov 10, 2020 · 2 comments

Comments

@aurotripathy
Copy link

aurotripathy commented Nov 10, 2020

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 aurotripathy changed the title Hi with "clang-11: error: Unsupported CUDA gpu architecture: gfx900:xnack-" while making Hi with "clang-11: error: Unsupported CUDA gpu architecture: gfx900:xnack-" while making examples Nov 10, 2020
@aurotripathy aurotripathy changed the title Hi with "clang-11: error: Unsupported CUDA gpu architecture: gfx900:xnack-" while making examples Hit with "clang-11: error: Unsupported CUDA gpu architecture: gfx900:xnack-" while making examples Nov 10, 2020
@aurotripathy
Copy link
Author

Master branch build fine. Closing...

@aurotripathy
Copy link
Author

Master branch build fine. Closing...

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

No branches or pull requests

1 participant