added CUDA initialization/reset