Python interface to CUSPARSE functions for solving batch tridiagonal systems.
Note: this module does not explicitly depend on PyCUDA.
The set up code for this module is heavily based on the cusparse module within scikit-cuda.
It is duplicated here because, as of version 0.5.3, the cusparse module within scikit-cuda raises an error upon import.
My pull request to fix this error and add the batch tridiagonal functions scikit-cuda was not acted for
over two months, hence I moved the code into the dadi distribution itself.
"""
from__future__importabsolute_import
importctypes
importplatform
importctypes,platform,sys
fromstringimportTemplate
importsys
fromskcudaimportcuda
#(base) PS C:\Users\rgute\Desktop\dadi-devel\tests> python test_CUDA.py -v C:\Users\rgute\anaconda3\lib\site-packages\skcuda\cublas.py:284: UserWarning: creating CUBLAS context to get version number
# warnings.warn('creating CUBLAS context to get version number')
#test_2d_const_params (__main__.CUDATestCase) ... C:\Users\rgute\anaconda3\lib\site-packages\pycuda\gpuarray.py:183: DeprecationWarning: np.asscalar(a) is deprecated since NumPy v1.16, use a.item() instead