MCPcopy Create free account
hub / github.com/a2flo/floor / make_kernel_func_wrapper

Function make_kernel_func_wrapper

compute/host/host_kernel.cpp:634–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632
633template <typename int_type, int_type... ints>
634static kernel_func_wrapper make_kernel_func_wrapper(const void* kernel_ptr,
635 const vector<const void*>& vptr_args,
636 std::integer_sequence<int_type, ints...>) {
637 kernel_func_wrapper::kernel_func<int_type, ints...> kfunc((void*)kernel_ptr, vptr_args);
638 return kernel_func_wrapper {
639 .kfunc = make_unique<decltype(kfunc)>(std::move(kfunc))
640 };
641}
642
643static kernel_func_wrapper make_callable_kernel_function(const void* kernel_ptr, const vector<const void*>& vptr_args) {
644 switch (vptr_args.size()) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected