We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81f4e20 commit 8d7f86cCopy full SHA for 8d7f86c
src/Optix.cpp
@@ -62,8 +62,8 @@ static CUcontext getCurrentDeviceContext()
62
CUcontext cudaContext = nullptr;
63
CUresult primaryCtxStatus = cuDevicePrimaryCtxRetain(&cudaContext, device);
64
if (primaryCtxStatus != CUDA_SUCCESS) {
65
- cuGetErrorString(status, &error);
66
- throw std::runtime_error(fmt::format("failed to get primary CUDA context: {} ({})\n", error, status));
+ cuGetErrorString(primaryCtxStatus, &error);
+ throw std::runtime_error(fmt::format("failed to get primary CUDA context: {} ({})\n", error, primaryCtxStatus));
67
}
68
assert(cudaContext != nullptr);
69
return cudaContext;
0 commit comments