Skip to content

Commit c9552a6

Browse files
committed
Add a backward compat api_version() method.
1 parent a4e1b1b commit c9552a6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pygpu/gpuarray.pyx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ import numpy as np
99
from cpython cimport Py_INCREF, PyNumber_Index
1010
from cpython.object cimport Py_EQ, Py_NE
1111

12+
def api_version():
13+
# Those where the last defined numbers.
14+
return (-9997, 1, 0)
15+
1216
np.import_array()
1317

1418
# to export the numeric value

0 commit comments

Comments
 (0)