Skip to content

Commit eb78db9

Browse files
committed
GPU: Add RTC debug option to override the command line
1 parent 18126db commit eb78db9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GPU/GPUTracking/Base/cuda/GPUReconstructionCUDAGenRTC.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ int GPUReconstructionCUDA::genRTC(std::string& filename, unsigned int& nCompile)
159159
}
160160
HighResTimer rtcTimer;
161161
rtcTimer.ResetStart();
162+
std::string baseCommand = getenv("O2_GPU_RTC_OVERRIDE_CMD") ? std::string(getenv("O2_GPU_RTC_OVERRIDE_CMD")) : std::string(_binary_GPUReconstructionCUDArtc_command_start, _binary_GPUReconstructionCUDArtc_command_len);
162163
#ifdef WITH_OPENMP
163164
#pragma omp parallel for schedule(dynamic, 1)
164165
#endif
@@ -181,7 +182,7 @@ int GPUReconstructionCUDA::genRTC(std::string& filename, unsigned int& nCompile)
181182
throw std::runtime_error("Error writing file");
182183
}
183184
fclose(fp);
184-
std::string command = std::string(_binary_GPUReconstructionCUDArtc_command_start, _binary_GPUReconstructionCUDArtc_command_len);
185+
std::string command = baseCommand;
185186
command += " -c " + filename + "_" + std::to_string(i) + mRtcSrcExtension + " -o " + filename + "_" + std::to_string(i) + mRtcBinExtension;
186187
if (mProcessingSettings.debugLevel < 0) {
187188
command += " &> /dev/null";

0 commit comments

Comments
 (0)