ROCm / HIP-CPU

An implementation of HIP that works on CPUs, across OSes.
MIT License
112 stars 19 forks source link

missing hipLaunchKernel() - the version with void **args #40

Open Noerr opened 1 year ago

Noerr commented 1 year ago

It looks like HIP has provided since 2019:

hipError_t  hipLaunchKernel(const void* function_address,
                dim3 numBlocks, dim3 dimBlocks, void** args,
                size_t sharedMemBytes, hipStream_t stream);

HIP-CPU only provides hipLaunchKernelGGL with variadic macro expansion of kernel arguments. I want to use the cleaner void **args API provided by CUDA and HIP. Please implement this component of the HIP API

dc-dc-dc commented 1 year ago

Would also like to see this get added as it would simplify my use case and not require recompiling for every kernel

dc-dc-dc commented 1 year ago

Does look like there is a function that can be used hip::detail::launch_kernel_from_so but I am getting a seg fault when trying to run it