We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following cmake project using Trillinos
cmake_minimum_required(VERSION 3.24) project(example LANGUAGES CXX CUDA ) # Require C++17, and disable compiler-specific extensions (if possible). foreach(lang CXX CUDA) set(CMAKE_${lang}_STANDARD 17) set(CMAKE_${lang}_STANDARD_REQUIRED ON) set(CMAKE_${lang}_EXTENSIONS OFF) endforeach() find_package(Trilinos REQUIRED) # Add executables add_executable(example-cuda example-cuda.cu) target_link_libraries(example-cuda PUBLIC Trilinos::all_selected_libs)
Leads to the following error:
make [ 50%] Building CUDA object CMakeFiles/example-cuda.dir/example-cuda.cu.o [100%] Linking CXX executable example-cuda c++: error: unrecognized command-line option ‘--relocatable-device-code=true’ c++: error: unrecognized command-line option ‘-arch=sm_86’ make[2]: *** [CMakeFiles/example-cuda.dir/build.make:169: example-cuda] Error 1 make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/example-cuda.dir/all] Error 2 make: *** [Makefile:91: all] Error 2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report
The following cmake project using Trillinos
Leads to the following error:
The text was updated successfully, but these errors were encountered: