SWDEV-405983 - adding in HIP_LAUNCH_BLOCKING

Change-Id: I3f9c8a745099aab05155ebe910e727693961a02f


[ROCm/clr commit: 28f0daa34f]
此提交包含在:
jiabaxie
2023-10-04 15:35:54 -04:00
提交者 Rahul Garg
父節點 0ec2d8847d
當前提交 f25e5e01f3
共有 2 個檔案被更改,包括 5 行新增1 行删除
+2 -1
查看文件
@@ -412,7 +412,8 @@ NDRangeKernelCommand::NDRangeKernelCommand(HostQueue& queue, const EventWaitList
uint32_t gridId, uint32_t numGrids,
uint64_t prevGridSum, uint64_t allGridSum,
uint32_t firstDevice, bool forceProfiling) :
Command(queue, CL_COMMAND_NDRANGE_KERNEL, eventWaitList, AMD_SERIALIZE_KERNEL),
Command(queue, CL_COMMAND_NDRANGE_KERNEL, eventWaitList, AMD_SERIALIZE_KERNEL |
(HIP_LAUNCH_BLOCKING << 1)),
kernel_(kernel),
sizes_(sizes),
sharedMemBytes_(sharedMemBytes),
+3
查看文件
@@ -166,6 +166,9 @@ release(uint, AMD_SERIALIZE_KERNEL, 0, \
release(uint, AMD_SERIALIZE_COPY, 0, \
"Serialize copies, 0x1 = Wait for completion before enqueue" \
"0x2 = Wait for completion after enqueue 0x3 = both") \
release(uint, HIP_LAUNCH_BLOCKING, 0, \
"Serialize kernel enqueue 0x1 = Wait for completion after enqueue," \
"same as AMD_SERIALIZE_KERNEL=2") \
release(bool, PAL_ALWAYS_RESIDENT, false, \
"Force memory resources to become resident at allocation time") \
release(uint, HIP_HOST_COHERENT, 0, \