Skip to content

Commit

Permalink
Fixes to propagate updates of GPU params (D.Rohr)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Dec 1, 2024
1 parent dc760aa commit 73a96c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion GPU/GPUTracking/DataTypes/GPUNewCalibValues.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ using namespace GPUCA_NAMESPACE::gpu;
void GPUNewCalibValues::updateFrom(const GPUNewCalibValues* from)
{
if (from->newSolenoidField) {
solenoidField = from->newSolenoidField;
newSolenoidField = true;
solenoidField = from->solenoidField;
}
if (from->newContinuousMaxTimeBin) {
newContinuousMaxTimeBin = true;
continuousMaxTimeBin = from->continuousMaxTimeBin;
}
if (from->newTPCTimeBinCut) {
newTPCTimeBinCut = true;
tpcTimeBinCut = from->tpcTimeBinCut;
}
}
2 changes: 1 addition & 1 deletion GPU/GPUTracking/Global/GPUChainTracking.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ int32_t GPUChainTracking::DoQueuedUpdates(int32_t stream, bool updateSlave)
const GPUSettingsProcessing* p = nullptr;
std::lock_guard lk(mMutexUpdateCalib);
if (mUpdateNewCalibObjects) {
if (mNewCalibValues->newSolenoidField || mNewCalibValues->newContinuousMaxTimeBin) {
if (mNewCalibValues->newSolenoidField || mNewCalibValues->newContinuousMaxTimeBin || mNewCalibValues->newTPCTimeBinCut) {
grp = std::make_unique<GPUSettingsGRP>(mRec->GetGRPSettings());
if (mNewCalibValues->newSolenoidField) {
grp->solenoidBzNominalGPU = mNewCalibValues->solenoidField;
Expand Down

0 comments on commit 73a96c3

Please sign in to comment.