cuLaunchKernel_interface Interface

interface
private function cuLaunchKernel_interface(func, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, stream, kernelParams, extra) result(cuResult)

Arguments

Type IntentOptional Attributes Name
type(CUfunction), value :: func

CUDA function to launch

integer(kind=c_int), value :: gridDimX

Grid dimensions in X

integer(kind=c_int), value :: gridDimY

Grid dimensions in Y

integer(kind=c_int), value :: gridDimZ

Grid dimensions in Z

integer(kind=c_int), value :: blockDimX

Block dimensions in X

integer(kind=c_int), value :: blockDimY

Block dimensions in Y

integer(kind=c_int), value :: blockDimZ

Block dimensions in Z

integer(kind=c_int), value :: sharedMemBytes

Dynamic shared memory size

type(dtfft_stream_t), value :: stream

Stream identifier

type(c_ptr) :: kernelParams(*)

Array of pointers to kernel parameters

type(c_ptr) :: extra

Dynamic shared-memory size per thread block in bytes

Return Value integer(kind=c_int)

Driver result code

Description

Launches a CUDA function CUfunction.