Lines Matching full:cuda
2 # `enable_language(CUDA)` instead of `find_package(CUDA)` and let the CMake
8 # of the CUDA projects are using those.
10 # This test relies on `find_package(CUDA)` in the parent CMake config.
13 # https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#cpp14-language-features
17 # In this test, we assume that the user is going to compile CUDA source code
21 # by providing another (non-CUDA) C++ source code.
23 # https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html
32 cuda_add_executable(fmt-in-cuda-test cuda-cpp14.cu cpp14.cc)
33 target_compile_features(fmt-in-cuda-test PRIVATE cxx_std_14)
35 # This part is for (non-CUDA) C++ code. MSVC can define incorrect
41 target_compile_options(fmt-in-cuda-test PRIVATE /Zc:__cplusplus /permissive-)
44 # now using a "new" way of handling CUDA
45 add_executable(fmt-in-cuda-test cuda-cpp14.cu cpp14.cc)
46 set_target_properties(fmt-in-cuda-test PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
47 target_compile_features(fmt-in-cuda-test PRIVATE cxx_std_14)
55 set_property(SOURCE cuda-cpp14.cu APPEND PROPERTY
62 get_target_property(IN_USE_CUDA_STANDARD fmt-in-cuda-test CUDA_STANDARD)
66 fmt-in-cuda-test CUDA_STANDARD_REQUIRED)
72 target_link_libraries(fmt-in-cuda-test fmt::fmt)