gpuDevice (Function)

Signature: gpuDevice() -> string

Description: Returns the name of the backend GPU kernels and products run on: "host", or the adapter OSPREY_GPU selected, such as "metal:0 (Apple M4 Max)" or "opencl:0 (Apple M4 Max)".

Returns: string

Example

print(gpuDevice())  // host
print (gpuDevice ())  // host