Skip to content

Commit

Permalink
GPU CUDA: Use larger heap size for deterministic mode
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr committed Feb 29, 2024
1 parent 0750214 commit b764ede
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 93 deletions.
2 changes: 1 addition & 1 deletion GPU/GPUTracking/Base/cuda/GPUReconstructionCUDA.cu
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ int GPUReconstructionCUDA::InitDevice_Runtime()
GPUFailedMsgI(cudaDeviceReset());
return (1);
}
if (GPUFailedMsgI(cudaDeviceSetLimit(cudaLimitMallocHeapSize, GPUCA_GPU_HEAP_SIZE))) {
if (GPUFailedMsgI(cudaDeviceSetLimit(cudaLimitMallocHeapSize, mProcessingSettings.deterministicGPUReconstruction ? std::max<size_t>(1024 * 1024 * 1024, GPUCA_GPU_HEAP_SIZE) : GPUCA_GPU_HEAP_SIZE))) {
GPUError("Error setting CUDA stack size");
GPUFailedMsgI(cudaDeviceReset());
return (1);
Expand Down
Loading

0 comments on commit b764ede

Please sign in to comment.