rocr: Fix wrong args in memory copy functions (#1520)
Fix incorrect arguments passed into system_region->Lock
Este cometimento está contido em:
cometido por
GitHub
ascendente
1585fe59cd
cometimento
6497fa0339
@@ -552,7 +552,7 @@ hsa_status_t Runtime::CopyMemory(void* dst, const void* src, size_t size) {
|
||||
const auto& locked_copy = [&](void*& ptr, core::Agent* locking_agent) {
|
||||
void* tmp;
|
||||
hsa_agent_t agent = locking_agent->public_handle();
|
||||
hsa_status_t err = system_region->Lock(1, &agent, ptr, 0, size, &tmp);
|
||||
hsa_status_t err = system_region->Lock(1, &agent, ptr, size, 0, &tmp);
|
||||
if (err != HSA_STATUS_SUCCESS) throw AMD::hsa_exception(err, "Lock failed in hsa_memory_copy.");
|
||||
gpuPtr = ptr;
|
||||
ptr = tmp;
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador