RuntimeError: cuInit failed: no CUDA-capable device is detected がGoogle Colabで出たら。
import numpy as np
import pycuda.gpuarray as gpuarray
from pycuda.elementwise import ElementwiseKernel
import pycuda.autoinit
-------------------------以下エラー------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-2-be9ea5a5b25e> in <module>()
2 import pycuda.gpuarray as gpuarray
3 from pycuda.elementwise import ElementwiseKernel
----> 4 import pycuda.autoinit
/usr/local/lib/python3.7/dist-packages/pycuda/autoinit.py in <module>()
3
4 # Initialize CUDA
----> 5 cuda.init()
6
7 from pycuda.tools import make_default_context # noqa: E402
RuntimeError: cuInit failed: no CUDA-capable device is detected
OK!