Skip to content

Commit 357a90d

Browse files
ktfdavidrohr
authored andcommitted
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.
1 parent 036086c commit 357a90d

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

‎GPU/GPUTracking/Base/GPUReconstructionCPU.cxx‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ inline void GPUReconstructionCPU::runKernelBackend(const krnlSetupTime& _xyz, co
9999
}
100100
}
101101

102-
void GPUReconstructionCPU::runKernelOnHost(const int num, const void* args)
103-
{
104-
GPUReconstructionCPU::runKernelVirtual(num, args);
105-
}
106-
107102
const void* GPUReconstructionCPU::HostPointer(const void* ptr) const
108103
{
109104
const size_t offset = (const char*)ptr - (const char*)mDeviceMemoryBase;

‎GPU/GPUTracking/Base/GPUReconstructionCPU.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ class GPUReconstructionCPU : public GPUReconstructionProcessing::KernelInterface
7474
const void* HostPointer(const void* ptr) const;
7575
void* HostPointer(void* ptr) const { return const_cast<void*>(HostPointer(static_cast<const void*>(ptr))); }
7676
std::unique_ptr<char[]> DeviceProcessorOnHostView(const krnlSetupTime& _xyz);
77-
void runKernelOnHost(const int num, const void* args); // For the kernel specializations of a backend, e.g. with HostOnDeviceMemory
7877

7978
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()); }
8079
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()); }

0 commit comments

Comments
 (0)