Skip to content

Commit 67cc281

Browse files
davidrohrktf
authored andcommitted
GPU: Fix HIP memcpyToSymbol, which requires additional HIP_SYMBOL macro
1 parent 2bafa1f commit 67cc281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GPU/GPUTracking/Base/hip/GPUReconstructionHIP.hip.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,9 @@ size_t GPUReconstructionHIPBackend::WriteToConstantMemory(size_t offset, const v
412412
{
413413
#ifndef GPUCA_HIP_NO_CONSTANT_MEMORY
414414
if (stream == -1) {
415-
GPUFailedMsg(hipMemcpyToSymbol(gGPUConstantMemBuffer, src, size, offset, hipMemcpyHostToDevice));
415+
GPUFailedMsg(hipMemcpyToSymbol(HIP_SYMBOL(gGPUConstantMemBuffer), src, size, offset, hipMemcpyHostToDevice));
416416
} else {
417-
GPUFailedMsg(hipMemcpyToSymbolAsync(gGPUConstantMemBuffer, src, size, offset, hipMemcpyHostToDevice, mInternals->HIPStreams[stream]));
417+
GPUFailedMsg(hipMemcpyToSymbolAsync(HIP_SYMBOL(gGPUConstantMemBuffer), src, size, offset, hipMemcpyHostToDevice, mInternals->HIPStreams[stream]));
418418
}
419419
if (ev && stream != -1) {
420420
GPUFailedMsg(hipEventRecord(*(hipEvent_t*)ev, mInternals->HIPStreams[stream]));

0 commit comments

Comments
 (0)