From c79e6c61b4b0fbd728218840ff81e9c244dda70b Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Fri, 27 Nov 2026 12:40:30 +0100 Subject: [PATCH] GPU: drop the unused runKernelOnHost It was added for the Metal backend's own specialisation of the border merging, which went away when that kernel was switched to HostOnDeviceMemory at the call site (UNIFIED_MEM_MERGE_BORDERS_ON_HOST). Kernels run with HostOnDeviceMemory reach the CPU code through the usual CPU fallback, so nothing calls it. --- GPU/GPUTracking/Base/GPUReconstructionCPU.cxx | 5 ----- GPU/GPUTracking/Base/GPUReconstructionCPU.h | 1 - 2 files changed, 6 deletions(-) diff --git a/GPU/GPUTracking/Base/GPUReconstructionCPU.cxx b/GPU/GPUTracking/Base/GPUReconstructionCPU.cxx index 58fba0b7a3569..2bae3638f2f67 100644 --- a/GPU/GPUTracking/Base/GPUReconstructionCPU.cxx +++ b/GPU/GPUTracking/Base/GPUReconstructionCPU.cxx @@ -99,11 +99,6 @@ inline void GPUReconstructionCPU::runKernelBackend(const krnlSetupTime& _xyz, co } } -void GPUReconstructionCPU::runKernelOnHost(const int num, const void* args) -{ - GPUReconstructionCPU::runKernelVirtual(num, args); -} - const void* GPUReconstructionCPU::HostPointer(const void* ptr) const { const size_t offset = (const char*)ptr - (const char*)mDeviceMemoryBase; diff --git a/GPU/GPUTracking/Base/GPUReconstructionCPU.h b/GPU/GPUTracking/Base/GPUReconstructionCPU.h index db7ac66b09239..bfab7dd69e39b 100644 --- a/GPU/GPUTracking/Base/GPUReconstructionCPU.h +++ b/GPU/GPUTracking/Base/GPUReconstructionCPU.h @@ -74,7 +74,6 @@ class GPUReconstructionCPU : public GPUReconstructionProcessing::KernelInterface const void* HostPointer(const void* ptr) const; void* HostPointer(void* ptr) const { return const_cast(HostPointer(static_cast(ptr))); } std::unique_ptr DeviceProcessorOnHostView(const krnlSetupTime& _xyz); - void runKernelOnHost(const int num, const void* args); // For the kernel specializations of a backend, e.g. with HostOnDeviceMemory size_t TransferMemoryResourceToGPU(GPUMemoryResource* res, int32_t stream = -1, deviceEvent* ev = nullptr, deviceEvent* evList = nullptr, int32_t nEvents = 1) { return TransferMemoryInternal(res, stream, ev, evList, nEvents, true, res->Ptr(), res->PtrDevice()); } size_t TransferMemoryResourceToHost(GPUMemoryResource* res, int32_t stream = -1, deviceEvent* ev = nullptr, deviceEvent* evList = nullptr, int32_t nEvents = 1) { return TransferMemoryInternal(res, stream, ev, evList, nEvents, false, res->PtrDevice(), res->Ptr()); }