All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nd4j.linalg.api.concurrency.BasicAffinityManager Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
package org.nd4j.linalg.api.concurrency;

/**
 * @author [email protected]
 */
public abstract class BasicAffinityManager implements AffinityManager {
    @Override
    public Integer getDeviceForCurrentThread() {
        return 0;
    }

    @Override
    public Integer getDeviceForThread(Thread thread) {
        return 0;
    }

    @Override
    public Integer getDeviceForThread(long threadId) {
        return 0;
    }

    @Override
    public void attachThreadToDevice(Thread thread, Integer deviceId) {
        // no-op
    }

    @Override
    public void attachThreadToDevice(long threadId, Integer deviceId) {
        // no-op
    }

    @Override
    public int getNumberOfDevices() {
        return 1;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy