gpuDevice (Function)

Signature: gpuDevice() -> string

Description: Returns the active GPU execution backend's name. The host backend reports "host"; device backends report names like "cuda:0".

Returns: string

Example

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