SWDEV-405983 - adding in HIP_LAUNCH_BLOCKING

Change-Id: I3f9c8a745099aab05155ebe910e727693961a02f
Šī revīzija ir iekļauta:
jiabaxie
2023-10-04 15:35:54 -04:00
revīziju iesūtīja Rahul Garg
vecāks bf8baeecb3
revīzija 28f0daa34f
2 mainīti faili ar 5 papildinājumiem un 1 dzēšanām
+2 -1
Parādīt failu
@@ -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
Parādīt failu
@@ -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, \