mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
16 lines
454 B
C
16 lines
454 B
C
#ifndef THCP_CUDA_MODULE_INC
|
|
#define THCP_CUDA_MODULE_INC
|
|
|
|
extern THCState *state;
|
|
|
|
#ifdef _THP_CORE
|
|
void THCPModule_setDevice(int idx);
|
|
PyObject * THCPModule_getDevice_wrap(PyObject *self);
|
|
PyObject * THCPModule_setDevice_wrap(PyObject *self, PyObject *arg);
|
|
PyObject * THCPModule_getDriverVersion(PyObject *self);
|
|
PyObject * THCPModule_isDriverSufficient(PyObject *self);
|
|
PyObject * THCPModule_getCurrentBlasHandle_wrap(PyObject *self);
|
|
#endif
|
|
|
|
#endif
|