Thunk: make scratch memory only map to its own GPU

Map scratch memory to the GPU that specified when allocate the memory

Change-Id: I788f9ef0dccb63b894a75e75cac5f94a60d7ec48
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>


[ROCm/ROCR-Runtime commit: 29b45b8c0a]
Этот коммит содержится в:
shaoyunl
2018-11-16 11:16:04 -05:00
родитель 6087fd7bca
Коммит a8af1e5e56
+1 -1
Просмотреть файл
@@ -2494,7 +2494,7 @@ static int _fmm_map_to_gpu_scratch(uint32_t gpu_id, manageable_aperture_t *apert
/* map to GPU */
ret = _fmm_map_to_gpu(aperture, address, size, NULL, NULL, 0);
ret = _fmm_map_to_gpu(aperture, address, size, NULL, &gpu_id, sizeof(uint32_t));
if (ret != 0)
__fmm_release(obj, aperture);