diff options
author | Brad King <brad.king@kitware.com> | 2022-11-29 15:39:25 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-11-29 15:39:40 (GMT) |
commit | f72c405d4ee4ad4775a10a944774b91f49726dad (patch) | |
tree | fb916f88fb22d3add3063b9757519287ce4ca911 /Tests | |
parent | 79721c19f1bc8f04dc3c019ad7feb61ae040e4ee (diff) | |
parent | 16a5c36795cacd622078f3d31d36d9743b8bfdf7 (diff) | |
download | CMake-f72c405d4ee4ad4775a10a944774b91f49726dad.zip CMake-f72c405d4ee4ad4775a10a944774b91f49726dad.tar.gz CMake-f72c405d4ee4ad4775a10a944774b91f49726dad.tar.bz2 |
Merge topic 'ci-nvhpc'
16a5c36795 gitlab-ci: add nightly job testing NVHPC with Ninja on Linux
9474d02386 Tests: Clarify CudaOnly.SeparateCompilationPTX output
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7946
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CudaOnly/SeparateCompilationPTX/main.cu | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Tests/CudaOnly/SeparateCompilationPTX/main.cu b/Tests/CudaOnly/SeparateCompilationPTX/main.cu index 164cde5..f94beff 100644 --- a/Tests/CudaOnly/SeparateCompilationPTX/main.cu +++ b/Tests/CudaOnly/SeparateCompilationPTX/main.cu @@ -21,10 +21,11 @@ int main() cuCtxCreate(&context, 0, device); CUmodule module; - cuModuleLoadData(&module, kernels); - if (module == nullptr) { - std::cerr << "Failed to load the embedded ptx" << std::endl; + CUresult result = cuModuleLoadData(&module, kernels); + std::cout << "module pointer: " << module << '\n'; + if (result != CUDA_SUCCESS || module == nullptr) { + std::cerr << "Failed to load the embedded ptx with error: " + << static_cast<unsigned int>(result) << '\n'; return 1; } - std::cout << module << std::endl; } |