Adding Anyorder flag to HIP

Change-Id: Ie20931541b3febe23fa9ac36ebc0c90de75a5f0a


[ROCm/clr commit: 628a308475]
Цей коміт міститься в:
Jatin Chaudhary authored and Jatin Chaudhary committed 2020-08-17 08:46:52 -04:00
1 джерело 608fded501
коміт 6b597909ce
2 files changed
+8

No files matched your search

+3
Переглянути файл
@@ -232,6 +232,9 @@ enum hipLimit_t {
#define hipCpuDeviceId ((int)-1)
#define hipInvalidDeviceId ((int)-2)
// Flags that can be used with hipExtLaunch Set of APIs
#define hipExtAnyOrderLaunch 0x01 ///< AnyOrderLaunch of kernels
/*
* @brief HIP Memory Advise values
* @enum
+5
Переглянути файл
@@ -288,6 +288,11 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX,
profileNDRange = (startEvent != nullptr && stopEvent != nullptr);
// Flag set to 1 signifies that kernel can be launched in anyorder
if (flags & hipExtAnyOrderLaunch) {
params |= amd::NDRangeKernelCommand::AnyOrderLaunch;
}
amd::NDRangeKernelCommand* command = new amd::NDRangeKernelCommand(
*queue, waitList, *kernel, ndrange, sharedMemBytes,
params, gridId, numGrids, prevGridSum, allGridSum, firstDevice, profileNDRange);