A high-performance general-purpose compute library

Change current device to specified device More...

Functions

void deviceset (const int device)
 Sets the current device.
 
void setDevice (const int device)
 Sets the current device.
 
af_err af_set_device (const int device)
 
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

◆ af_get_device()

af_err af_get_device ( int * device)

◆ af_set_device()

af_err af_set_device ( const int device)

◆ deviceset()

void deviceset ( const int device)

Sets the current device.

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

◆ setDevice()