Add comments to GetPcieBlit.
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]
Этот коммит содержится в:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user