blob: fa2a04f7c9078500645f248738cbe93ebe392ad1 [file] [log] [blame]
#ifndef THCP_AUTOGPU_INC
#define THCP_AUTOGPU_INC
#include <Python.h>
class THCPAutoGPU {
public:
THCPAutoGPU(int device_id=-1);
THCPAutoGPU(PyObject *args, PyObject *self=NULL);
~THCPAutoGPU();
bool setObjDevice(PyObject *obj);
bool setDevice(int new_device);
int device = -1;
};
#endif