Hi,
Is it possible that I pass a device function as an argument to a global kernel so that it can be invoked inside the kernel?
attributes(global) subroutine my_kernel(func_name)
end subroutine
attributes(device) function do_st() result(res)
integer :: res
end
then
call my_kernel<<<diimGrid, dimBlock>>>(do_st)
Thanks,
Tuan