Answering part of my own quesiton here, the solution to getting the device synchronize command in is straightforward.
The cudaDeviceSynchronize call can be added after the function call with the following line of code.
coder.ceval('-gpudevicefcn', 'cudaDeviceSynchronize');