Skip to content

Commit 2378167

Browse files
committed
GPU TPC NN Clusterizer: Fix compilation without ONNX
1 parent 930d837 commit 2378167

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

GPU/GPUTracking/Global/GPUChainTrackingClusterizer.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,13 +1198,15 @@ int32_t GPUChainTracking::RunTPCClusterizer(bool synchronizeOutput)
11981198
}
11991199
}
12001200
for (int32_t i = 0; i < GetProcessingSettings().nTPCClustererLanes; i++) {
1201+
#ifdef GPUCA_HAS_ONNX
12011202
if (GetProcessingSettings().nn.applyNNclusterizer) {
12021203
LOG(info) << "(ORT) Environment releasing...";
12031204
GPUTPCNNClusterizerHost& nnApplication = nnApplications[i];
12041205
nnApplication.mModelClass.release(true);
12051206
nnApplication.mModelReg1.release(true);
12061207
nnApplication.mModelReg2.release(true);
12071208
}
1209+
#endif
12081210
if (transferRunning[i]) {
12091211
ReleaseEvent(mEvents->stream[i], doGPU);
12101212
}

0 commit comments

Comments
 (0)