-
Notifications
You must be signed in to change notification settings - Fork 407
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
Kokkos launch compiler updates #3778
Kokkos launch compiler updates #3778
Conversation
- Restored -DKOKKOS_DEPENDENCE to KOKKOS_LINK_OPTIONS - Verbose message - Added new "launch_compiler" for Kokkos_FIND_COMPONENTS to enable universally - updated kokkos_launch_compiler to handle more than just nvcc_wrapper - Added build_cmake_installed_different_compilers for testing
- Replaced @Kokkos_CXX_COMPILER_ID@ with @KOKKOS_CXX_COMPILER_ID@ - Configure @NVCC_WRAPPER_DEFAULT_COMPILER@ into kokkos_launch_compiler - Update internal version of kokkos_compilation
Co-authored-by: Daniel Arndt <arndtd@ornl.gov>
Retest this please |
1 similar comment
Retest this please |
I guess this is ok? But I just don't know. What happened before if you installed Kokkos with nvcc_wrapper and then downstream use clang? But we can just say we don't support that. |
Before this, i don't know. You probably just got compiler-flag errors since Kokkos would export compiler flags for NVCC. After this PR, the problem with installing Kokkos via nvcc_wrapper is that we don't actually know the underlying host compiler at CMake time (since they could configure and then set |
I actually think this makes a rather strong argument for us deprecating the direct use of |
And it would be a win in my and @DavidPoliakoff war against compiler-wrappers. |
Also, now it is supported. Since you could do |
* Support for generic use of kokkos_launch_compiler - Restored -DKOKKOS_DEPENDENCE to KOKKOS_LINK_OPTIONS - Verbose message - Added new "launch_compiler" for Kokkos_FIND_COMPONENTS to enable universally - updated kokkos_launch_compiler to handle more than just nvcc_wrapper - Added build_cmake_installed_different_compilers for testing * Miscellanous fixes - Replaced @Kokkos_CXX_COMPILER_ID@ with @KOKKOS_CXX_COMPILER_ID@ - Configure @NVCC_WRAPPER_DEFAULT_COMPILER@ into kokkos_launch_compiler - Update internal version of kokkos_compilation * Fix to configuration of kokkos_launch_compiler * Removed Kokkos_LAUNCH_COMPILER_INFO --> Should be in docs! * Apply suggestions from code review Co-authored-by: Daniel Arndt <arndtd@ornl.gov> * formatting Co-authored-by: Daniel Arndt <arndtd@ornl.gov>
find_package(Kokkos COMPONENTS launch_compiler)
mode for using the launch compiler feature regardless of whether CUDA is enabledkokkos_launch_compiler
was extended to support forwarding to the original compiler Kokkos was compiled withnvcc_wrapper
and downstream application uses clang