Skip to content

Commit 4089942

Browse files
committed
[offload] fix amd-staging build issue: TARGET_ALLOC_DEVICE_NON_BLOCKING
1 parent e233907 commit 4089942

File tree

1 file changed

+3
-3
lines changed
  • offload/plugins-nextgen/common/src

1 file changed

+3
-3
lines changed

offload/plugins-nextgen/common/src/RPC.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ rpc::Status handleOffloadOpcodes(plugin::GenericDeviceTy &Device,
6363
#ifdef OFFLOAD_ENABLE_EMISSARY_APIS
6464
case ALT_LIBC_MALLOC: {
6565
Port.recv_and_send([&](rpc::Buffer *Buffer, uint32_t) {
66-
Buffer->data[0] = reinterpret_cast<uintptr_t>(Device.allocate(
67-
Buffer->data[0], nullptr, TARGET_ALLOC_DEVICE_NON_BLOCKING));
66+
Buffer->data[0] = reinterpret_cast<uintptr_t>(
67+
Device.allocate(Buffer->data[0], nullptr, TARGET_ALLOC_DEVICE));
6868
});
6969
break;
7070
}
7171
case ALT_LIBC_FREE: {
7272
Port.recv([&](rpc::Buffer *Buffer, uint32_t) {
7373
Device.free(reinterpret_cast<void *>(Buffer->data[0]),
74-
TARGET_ALLOC_DEVICE_NON_BLOCKING);
74+
TARGET_ALLOC_DEVICE);
7575
});
7676
break;
7777
}

0 commit comments

Comments
 (0)