Skip to content

Commit 64c19d5

Browse files
committed
Fixes
1 parent 9037ea6 commit 64c19d5

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

GPU/GPUTracking/Base/cuda/GPUReconstructionCUDA.cu

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include "GPUReconstructionCUDAIncludesHost.h"
1717

1818
#include <cuda_profiler_api.h>
19-
#include "ML/OrtInterface.h"
2019

2120
#include "GPUReconstructionCUDA.h"
2221
#include "GPUReconstructionCUDAInternals.h"
@@ -692,7 +691,7 @@ void* GPUReconstructionHIP::getGPUPointer(void* ptr)
692691
}
693692

694693
#ifdef GPUCA_HAS_ONNX
695-
int32_t GPUReconstructionCUDA::SetONNXGPUStream(OrtSessionOptions* session_options, int32_t stream)
694+
int32_t GPUReconstructionHIP::SetONNXGPUStream(OrtSessionOptions* session_options, int32_t stream)
696695
{
697696
// Create ROCm provider options
698697
const auto& api = Ort::GetApi();

GPU/GPUTracking/Global/GPUChainTrackingClusterizer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ int32_t GPUChainTracking::RunTPCClusterizer(bool synchronizeOutput)
640640
clustererNN.nnClusterizerVerbosity = nn_settings.nnClusterizerVerbosity;
641641
}
642642
clustererNN.nnClusterizerDtype = nn_settings.nnInferenceDtype.find("32") != std::string::npos;
643-
GPUTPCNNClusterizerHost nnApplication(nn_settings, clustererNN);
643+
GPUTPCNNClusterizerHost nnApplication(nn_settings, clustererNN, iSector);
644644
AllocateRegisteredMemory(clustererNN.mMemoryId);
645645
}
646646
}

GPU/GPUTracking/TPCClusterFinder/GPUTPCNNClusterizerHost.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919

2020
using namespace o2::gpu;
2121

22-
GPUTPCNNClusterizerHost::GPUTPCNNClusterizerHost(const GPUSettingsProcessingNNclusterizer& settings, GPUTPCNNClusterizer& clusterer)
22+
GPUTPCNNClusterizerHost::GPUTPCNNClusterizerHost(const GPUSettingsProcessingNNclusterizer& settings, GPUTPCNNClusterizer& clusterer, int32_t streamId)
2323
{
2424
OrtOptions = {
2525
{"model-path", settings.nnClassificationPath},
2626
{"device", settings.nnInferenceDevice},
27-
{"device-id", std::to_string(settings.nnInferenceDeviceId)},
27+
{"stream-id", std::to_string(streamId)},
2828
{"allocate-device-memory", std::to_string(settings.nnInferenceAllocateDevMem)},
2929
{"dtype", settings.nnInferenceDtype},
3030
{"intra-op-num-threads", std::to_string(settings.nnInferenceIntraOpNumThreads)},

GPU/GPUTracking/TPCClusterFinder/GPUTPCNNClusterizerHost.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class GPUTPCNNClusterizerHost
3737
{
3838
public:
3939
GPUTPCNNClusterizerHost() = default;
40-
GPUTPCNNClusterizerHost(const GPUSettingsProcessingNNclusterizer&, GPUTPCNNClusterizer&);
40+
GPUTPCNNClusterizerHost(const GPUSettingsProcessingNNclusterizer&, GPUTPCNNClusterizer&, int32_t = 0);
4141

4242
void networkInference(o2::ml::OrtModel model, GPUTPCNNClusterizer& clusterer, size_t size, float* output, int32_t dtype);
4343

0 commit comments

Comments
 (0)