public interface AffinityManager
Modifier and Type | Method and Description |
---|---|
void |
attachThreadToDevice(long threadId,
Integer deviceId)
This method attaches specified thread (by Id) to specified device
|
void |
attachThreadToDevice(Thread thread,
Integer deviceId)
This method attaches specified thread to specified device
|
Integer |
getDeviceForCurrentThread()
This method returns deviceId for current thread
|
Integer |
getDeviceForThread(long threadId)
This method returns
|
Integer |
getDeviceForThread(Thread thread)
This method returns deviceId for specified thread
|
int |
getNumberOfDevices()
This method returns number of available devices
|
void |
touch(DataBuffer buffer)
Utility method, to associate INDArray with specific device (backend-specific)
|
void |
touch(INDArray array)
Utility method, to associate INDArray with specific device (backend-specific)
|
Integer getDeviceForCurrentThread()
Integer getDeviceForThread(Thread thread)
thread
- Integer getDeviceForThread(long threadId)
threadId
- void attachThreadToDevice(Thread thread, Integer deviceId)
thread
- deviceId
- void attachThreadToDevice(long threadId, Integer deviceId)
threadId
- java ID of the threaddeviceId
- int getNumberOfDevices()
void touch(INDArray array)
array
- void touch(DataBuffer buffer)
buffer
- Copyright © 2016. All Rights Reserved.