Yes, you can pass a CuPtr. Just specify CuPtr in your ccall signature and pass a CuArray, automatic conversion will do the rest. Of course, you’ll need to make sure the array stays alive on the Julia side for as long as the C code can use the pointer, but that’s not GPU specific.