Skip to content

Commit 7642a73

Browse files
committed
GPU: support fmt 10.1.1
1 parent 759049f commit 7642a73

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

GPU/GPUTracking/Base/GPUReconstruction.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ bool GPUReconstruction::CheckInstanceAvailable(DeviceType type)
12151215
} else if (type == DeviceType::OCL2) {
12161216
return sLibOCL2->LoadLibrary() == 0;
12171217
} else {
1218-
GPUError("Error: Invalid device type %u", type);
1218+
GPUError("Error: Invalid device type %u", (unsigned)type);
12191219
return false;
12201220
}
12211221
}

GPU/GPUTracking/DataTypes/CalibdEdxTrackTopologyPol.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,13 @@ void CalibdEdxTrackTopologyPol::writeToFile(TFile& outf, const char* name) const
180180
void CalibdEdxTrackTopologyPol::setFromContainer(const CalibdEdxTrackTopologyPolContainer& container)
181181
{
182182
if (2 * FFits != container.mCalibPols.size()) {
183-
LOGP(warning, fmt::format("wrong number of polynomials stored! this {} container {}", 2 * FFits, container.mCalibPols.size()));
183+
LOGP(warning, "wrong number of polynomials stored! this {} container {}", 2 * FFits, container.mCalibPols.size());
184184
return;
185185
}
186186

187187
const auto nFacCont = container.mScalingFactorsqMax.size() + container.mScalingFactorsqTot.size();
188188
if (2 * FFits != nFacCont) {
189-
LOGP(warning, fmt::format("wrong number of scaling factors stored! this {} container {}", 2 * FFits, nFacCont));
189+
LOGP(warning, "wrong number of scaling factors stored! this {} container {}", 2 * FFits, nFacCont);
190190
return;
191191
}
192192

@@ -214,7 +214,7 @@ void CalibdEdxTrackTopologyPol::loadFromFile(const char* fileName, const char* n
214214
setFromContainer(*polTmp);
215215
delete polTmp;
216216
} else {
217-
LOGP(info, fmt::format("couldnt load object {} from input file", name));
217+
LOGP(info, "couldnt load object {} from input file", name);
218218
}
219219
}
220220

GPU/TPCFastTransformation/MultivariatePolynomial.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ void MultivariatePolynomial<Dim, Degree, InteractionOnly>::loadFromFile(TFile& i
178178
delete polTmp;
179179
} else {
180180
#ifndef GPUCA_ALIROOT_LIB
181-
LOGP(info, fmt::format("couldnt load object {} from input file", name));
181+
LOGP(info, "couldnt load object {} from input file", name);
182182
#endif
183183
}
184184
}
@@ -189,19 +189,19 @@ void MultivariatePolynomial<Dim, Degree, InteractionOnly>::setFromContainer(cons
189189
if constexpr (Dim > 0 && Degree > 0) {
190190
if (this->getDim() != container.mDim) {
191191
#ifndef GPUCA_ALIROOT_LIB
192-
LOGP(info, fmt::format("wrong number of dimensions! this {} container {}", this->getDim(), container.mDim));
192+
LOGP(info, "wrong number of dimensions! this {} container {}", this->getDim(), container.mDim);
193193
#endif
194194
return;
195195
}
196196
if (this->getDegree() != container.mDegree) {
197197
#ifndef GPUCA_ALIROOT_LIB
198-
LOGP(info, fmt::format("wrong number of degrees! this {} container {}", this->getDegree(), container.mDegree));
198+
LOGP(info, "wrong number of degrees! this {} container {}", this->getDegree(), container.mDegree);
199199
#endif
200200
return;
201201
}
202202
if (this->isInteractionOnly() != container.mInteractionOnly) {
203203
#ifndef GPUCA_ALIROOT_LIB
204-
LOGP(info, fmt::format("InteractionOnly is set for this object to {}, but stored as {} in the container", this->isInteractionOnly(), container.mInteractionOnly));
204+
LOGP(info, "InteractionOnly is set for this object to {}, but stored as {} in the container", this->isInteractionOnly(), container.mInteractionOnly);
205205
#endif
206206
return;
207207
}

GPU/TPCFastTransformation/MultivariatePolynomialHelper.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace GPUCA_NAMESPACE::gpu;
2626
void MultivariatePolynomialHelper<0, 0, false>::print() const
2727
{
2828
#ifndef GPUCA_NO_FMT
29-
LOGP(info, getFormula().c_str());
29+
LOGP(info, fmt::runtime(getFormula().c_str()));
3030
#endif
3131
}
3232

GPU/TPCFastTransformation/NDPiecewisePolynomials.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ void NDPiecewisePolynomials<Dim, Degree, InteractionOnly>::loadFromFile(TFile& i
317317
delete gridTmp;
318318
} else {
319319
#ifndef GPUCA_ALIROOT_LIB
320-
LOGP(info, fmt::format("couldnt load object {} from input file", name));
320+
LOGP(info, "couldnt load object {} from input file", name);
321321
#endif
322322
}
323323
}
@@ -326,19 +326,19 @@ void NDPiecewisePolynomials<Dim, Degree, InteractionOnly>::setFromContainer(cons
326326
{
327327
if (Dim != container.mDim) {
328328
#ifndef GPUCA_ALIROOT_LIB
329-
LOGP(info, fmt::format("wrong number of dimensions! this {} container {}", Dim, container.mDim));
329+
LOGP(info, "wrong number of dimensions! this {} container {}", Dim, container.mDim);
330330
#endif
331331
return;
332332
}
333333
if (Degree != container.mDegree) {
334334
#ifndef GPUCA_ALIROOT_LIB
335-
LOGP(info, fmt::format("wrong number of degrees! this {} container {}", Degree, container.mDegree));
335+
LOGP(info, "wrong number of degrees! this {} container {}", Degree, container.mDegree);
336336
#endif
337337
return;
338338
}
339339
if (InteractionOnly != container.mInteractionOnly) {
340340
#ifndef GPUCA_ALIROOT_LIB
341-
LOGP(info, fmt::format("InteractionOnly is set for this object to {}, but stored as {} in the container", InteractionOnly, container.mInteractionOnly));
341+
LOGP(info, "InteractionOnly is set for this object to {}, but stored as {} in the container", InteractionOnly, container.mInteractionOnly);
342342
#endif
343343
return;
344344
}

0 commit comments

Comments
 (0)