Closed muellren closed 5 years ago
PR addresses issue #14
Features:
get_device()
get_device(int)
get_devices()
Device
get_device(int k)
.properties
Devices
isCurrent()
setCurrent()
PR addresses issue #14
Features:
get_device()
andget_device(int)
built-in functions to grCUDAget_devices()
returns a list of all visible CUDA devices as an array ofDevice
get_device(int k)
returns aDevice
object for the kth device.Device
objects have a.properties
attribute, which, when accessed, lazily retrieves a given attribute from via the CUDA Runtime API.Devices
have aisCurrent()
andsetCurrent()
method to check or set the device that is currently receives commands submitted by the calling thread.