MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / launch_kernel

Function launch_kernel

src/targets/gpu/kernel.cpp:84–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82bool kernel::empty() const { return impl == nullptr; }
83
84static 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,

Callers 1

launchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected