MCPcopy Create free account
hub / github.com/XpuOS/xsched / XModuleLaunchKernel

Function XModuleLaunchKernel

platforms/hip/shim/src/shim.cpp:53–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53hipError_t XModuleLaunchKernel(hipFunction_t function,
54 unsigned int gdx, unsigned int gdy, unsigned int gdz,
55 unsigned int bdx, unsigned int bdy, unsigned int bdz,
56 unsigned int shm, hipStream_t stream,
57 void **params, void **extra)
58{
59 if (stream == nullptr) {
60 HipSyncBlockingXQueues();
61 return Driver::ModuleLaunchKernel(function, gdx, gdy, gdz, bdx, bdy, bdz, shm,
62 stream, params, extra);
63 }
64
65 auto xqueue = HwQueueManager::GetXQueue(GetHwQueueHandle(stream));
66 if (xqueue == nullptr) {
67 return Driver::ModuleLaunchKernel(function, gdx, gdy, gdz, bdx, bdy, bdz, shm,
68 stream, params, extra);
69 }
70
71 auto kernel = std::make_shared<HipModuleKernelLaunchCommand>(function, gdx, gdy, gdz, bdx, bdy, bdz, shm,
72 params, extra, xqueue != nullptr);
73 xqueue->Submit(kernel);
74 return hipSuccess;
75}
76
77hipError_t XExtModuleLaunchKernel(hipFunction_t f, uint32_t gwx, uint32_t gwy, uint32_t gwz,
78 uint32_t lwx, uint32_t lwy, uint32_t lwz, size_t shm,

Callers

nothing calls this directly

Calls 3

HipSyncBlockingXQueuesFunction · 0.85
SubmitMethod · 0.80
GetHwQueueHandleFunction · 0.50

Tested by

no test coverage detected