pystencils.codegen.target.Target.auto_gpu

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:

Target