Interface Component: PortCUDADevice ()
This is a special port selecting the CUDA device for computation. The port provides a combo box (option menu) listing the available CUDA GPUs. In addition, the port allows you to monitor the available free and total amount of memory.
![]()
Inherits all commands of Port.
getCurrentDevice
Returns the index of the current CUDA device.setCurrentDevice <index>
Sets the current CUDA device. The devices are indexed in the same order as they appear in the combo box.