diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp index cb6c56d88c..e5582787a0 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp @@ -1516,10 +1516,11 @@ lazy_ptr& GpuAgent::GetPcieBlit(const core::Agent& dst_agent, lazy_ptr& blit = (src_agent.device_type() == core::Agent::kAmdCpuDevice && dst_agent.device_type() == core::Agent::kAmdGpuDevice) - ? blits_[BlitHostToDev] + ? blits_[BlitHostToDev] // CPU->GPU transfer. : (src_agent.device_type() == core::Agent::kAmdGpuDevice && dst_agent.device_type() == core::Agent::kAmdCpuDevice) - ? blits_[BlitDevToHost] : blits_[BlitDevToHost]; + ? blits_[BlitDevToHost] // GPU->CPU transfer. + : blits_[BlitDevToHost]; // GPU->GPU transfer. return blit; }