preparing interface for CUDA