Commit Graph

4 Commits

Author SHA1 Message Date
luncliff
30c5209963 test cuda: applied PR reviews 2019-08-29 02:23:07 +00:00
luncliff
14c5dab2e6 test cuda: <fmt/core.h> checks NVCC and CUDA
The header file checks 2 things.

* __NVCC__: if the compiler is from NVIDIA
* __CUDACC__: if the source code is CUDA(.cu) file

Since we can't sure all users prefer latest, Version for
`find_pacakge(CUDA)` is downgraded to 9.0.
This is the minimum version for C++14 in CUDA
2019-08-29 00:50:43 +09:00
luncliff
be279261ff test cuda: add more comment / macro check
* checks both `__NVCC__` and `__CUDACC__`

More comments for CMake and CUDA source file.
2019-08-29 00:24:16 +09:00
luncliff
ba82f542d6 test cuda: import fmt in CUDA source code
Current test is only for Windows(cl.exe).
Need to test more with the other host compilers...

* Activate the test when `find_package(CUDA)` worked
* The test runs with C++14

Detailed comments in 'test/cuda-test'
2019-08-28 09:58:37 +00:00