Cuda test code