| 82 | bool kernel::empty() const { return impl == nullptr; } |
| 83 | |
| 84 | static void launch_kernel(hipFunction_t fun, |
| 85 | hipStream_t stream, |
| 86 | std::size_t global, |
| 87 | std::size_t local, |
| 88 | void* kernargs, |
| 89 | std::size_t size, |
| 90 | hipEvent_t start, |
| 91 | hipEvent_t stop) |
| 92 | { |
| 93 | assert(global > 0); |
| 94 | assert(local > 0); |
| 95 | void* config[] = { |
| 96 | // HIP_LAUNCH_PARAM_* are macros that do horrible things |
| 97 | #ifdef MIGRAPHX_USE_CLANG_TIDY |
| 98 | nullptr, kernargs, nullptr, &size, nullptr |
| 99 | #else |
| 100 | HIP_LAUNCH_PARAM_BUFFER_POINTER, |
| 101 | kernargs, |
| 102 | HIP_LAUNCH_PARAM_BUFFER_SIZE, |
| 103 | &size, |
| 104 | HIP_LAUNCH_PARAM_END |
| 105 | #endif |
| 106 | }; |
| 107 | |
| 108 | auto status = hipExtModuleLaunchKernel(fun, |
| 109 | global, |