Checking CUDA kernel allocation