Selects the specified device as primary computation device. All further invocations to nmfgpu will use the specified CUDA device.

Description

Selects the specified device as primary computation device. All further invocations to nmfgpu will use the specified CUDA device.

Usage

1
chooseDevice(deviceIndex)

Arguments

deviceIndex

Index of the CUDA device, which should be used for computation.

Note

CUDA enumerates devices starting with 0 for the first device.