mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-01 04:03:24 +03:00
Tests: Clarify CudaOnly.SeparateCompilationPTX output
This commit is contained in:
1 parent
9b9a421668
commit
9474d02386
1 file changed
+5
-4
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user