HIP icon indicating copy to clipboard operation
HIP copied to clipboard

Multi-Device called by multi cpu thread

Open stabunkow opened this issue 3 years ago • 1 comments

Could ROCm consider non-lock hipMemcpyAsync API when each thread control a device?

stabunkow avatar Apr 27 '22 02:04 stabunkow

#pragma omp for
for (deviceId = 0; deviceId < deviceSiz; ++deviceId) 
{
   hipSetDevice(deviceId);
   hipMemcpyAsync(...);
}

I know there is spinlock inside hipMemcpyAsync API, but when set hipSetDevice, the spinlock will be removed?

stabunkow avatar Apr 27 '22 02:04 stabunkow

@stabunkow Apologies for the lack of response. Do you still need assistance with this ticket? Thanks!

ppanchad-amd avatar Apr 04 '24 15:04 ppanchad-amd