variant type for CUDA