| 51 | } |
| 52 | |
| 53 | hipError_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 | |
| 77 | hipError_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, |
nothing calls this directly
no test coverage detected