Skip to content

Commit

Permalink
[BUGFIX] CUDA test crashed due to logger usage before initializing lo…
Browse files Browse the repository at this point in the history
…ggers
  • Loading branch information
corepointer committed Jun 12, 2024
1 parent dce8b5b commit 480fb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/local/kernels/CUDA/CreateCUDAContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
namespace CUDA {
void createCUDAContext(DCTX(ctx)) {
// ToDo: one context per device
ctx->cuda_contexts.emplace_back(CUDAContext::createCudaContext(0));
if(ctx->getUserConfig().log_ptr)
ctx->getUserConfig().log_ptr->registerLoggers();
ctx->cuda_contexts.emplace_back(CUDAContext::createCudaContext(0));
}
}

0 comments on commit 480fb34

Please sign in to comment.