pystencils.codegen.target.Target.auto_gpu#
- static Target.auto_gpu()#
Return the GPU target available in the current runtime environment.
- Raises:
RuntimeError – If
cupy
is not installed and therefore no GPU runtime is available.- Return type:
Return the GPU target available in the current runtime environment.
RuntimeError – If cupy
is not installed and therefore no GPU runtime is available.