Change current device to specified device. More...

Functions

AFAPI void deviceset (const int device)
 Sets the current device. More...
 
AFAPI void setDevice (const int device)
 Sets the current device. More...
 
AFAPI af_err af_set_device (const int device)
 
AFAPI af_err af_get_device (int *device)
 

Detailed Description

Change current device to specified device.

These functions change the current device. Operations after this called will be performed on the set device.


Function Documentation

AFAPI af_err af_get_device ( int *  device)
AFAPI af_err af_set_device ( const int  device)
AFAPI void af::deviceset ( const int  device)

Sets the current device.

Parameters
[in]deviceThe ID of the target device
Deprecated:
Use setDevice() instead