We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 116343e commit a632a2eCopy full SHA for a632a2e
runtime/src/iree/hal/drivers/hip/hip_device.c
@@ -1006,7 +1006,11 @@ static void iree_hal_hip_async_buffer_release(
1006
iree_hal_hip_device_t* device = (iree_hal_hip_device_t*)user_data;
1007
void* ptr = iree_hal_hip_buffer_device_pointer(buffer);
1008
if (ptr) {
1009
- iree_hal_hip_allocator_free_async(device->device_allocator, buffer);
+ if (device->params.async_caching) {
1010
+ iree_hal_hip_allocator_free_async(device->device_allocator, buffer);
1011
+ } else {
1012
+ iree_hal_hip_allocator_free_sync(device->device_allocator, buffer);
1013
+ }
1014
}
1015
1016
0 commit comments