vaeac_check_cuda function

Function that checks for access to CUDA