Cuda - 2D and 3D grid and block dimensions

Is in Julia equivalent of CUDA C:
dim3 grid( 512 ); // 512 x 1 x 1

dim3 block( 1024, 1024 ); // 1024 x 1024 x 1 ?

Ok, I have it.
I mean about:
@cuda blocks=3,4,5 threads=2,2,2 kernel_testfunction()
I just done there some cuprintf statements to check numbers of threads and it works. Sorry for problem.

1 Like