Working with cuda.