Comments call out the specific operation being selected since the
ternary nest is a bit hard to read.

Change-Id: If033dbaa6cba132e96196ad3fc6d5572042041f4


[ROCm/ROCR-Runtime commit: fc75731034]
Этот коммит содержится в:
Sean Keely
2021-11-15 19:30:27 -06:00
родитель 01c7c9856c
Коммит e462118b6e
+3 -2
Просмотреть файл
@@ -1516,10 +1516,11 @@ lazy_ptr<core::Blit>& GpuAgent::GetPcieBlit(const core::Agent& dst_agent,
lazy_ptr<core::Blit>& 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;
}