OptionaldeviceId: numberOptionalflags: DeviceFlagsThe human-readable name of this CUDA Device
The PCI Bus identifier of this CUDA Device
StaticactiveThe id of this thread's active CUDA device.
StaticnumThe number of compute-capable CUDA devices.
Sets this device as the current device for the calling host thread.
Any device memory subsequently allocated from this host thread
will be physically resident on this device. Any host memory allocated
from this host thread will have its lifetime associated with this
device. Any streams or events created from this host thread will
be associated with this device. Any kernels launched from this host
thread will be executed on this device.
This call may be made from any host thread, to any device, and at
any time. This function will do no synchronization with the previous
or new device, and should be considered a very low overhead call.
A function to execute
true if this Device's contexts are capable of directly
accessing memory from contexts on peerDevice, otherwise false.
Explicitly destroys and cleans up all resources associated with the
current device in the current process. Any subsequent API call to
this device will reinitialize the device.
Note that this function will reset the device immediately. It is the
caller's responsibility to ensure that the device is not being accessed
by any other host threads from the process when this function is called.
The new flags for the device's primary context.
The CUDA device identifer