numba / numba/pyculib

Initialization of pyculib.sparse.Sparse( ) fail

Open
#23 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
99
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Hi,
I have pyculib version 1.02 installed within Anaconda 5.3, on linux x86_64. However, the Sparse( ) fails to initialize. Below are the error messages. Thanks for any help you can offer!

In [1]: import pyculib                                                          

In [2]: pyculib.__version__
Out[2]: '1.0.2+2.g7ae9662'

In [3]: pyculib.sparse.Sparse( )
---------------------------------------------------------------------------
CuSparseError Traceback (most recent call last)
~/mylib/anaconda_5.3/lib/python3.6/site-packages/pyculib/sparse/binding.py in __init__(self)
225 try:
--> 226 self._api.cusparseCreate(byref(self._handle))
227 except CuSparseError:

~/mylib/anaconda_5.3/lib/python3.6/site-packages/pyculib/utils/libutils.py in wrapped(*args, **kws)
47 status = fn(*args, **kws)
---> 48 self.check_error(status)
49 return status

~/mylib/anaconda_5.3/lib/python3.6/site-packages/pyculib/utils/libutils.py in check_error(self, status)
53 if status != 0:
---> 54 raise self.ErrorType(status)
55

CuSparseError: CUSPARSE_STATUS_NOT_INITIALIZED

During handling of the above exception, another exception occurred:

RuntimeError Traceback (most recent call last)
<ipython-input-3-32f27b5fc5e6> in <module>
----> 1 pyculib.sparse.Sparse( )

~/mylib/anaconda_5.3/lib/python3.6/site-packages/numba/cuda/cudadrv/devices.py in _require_cuda_context(*args, **kws)
210 def _require_cuda_context(*args, **kws):
211 get_context()
--> 212 return fn(*args, **kws)
213
214 return _require_cuda_context

~/mylib/anaconda_5.3/lib/python3.6/site-packages/pyculib/sparse/api.py in __init__(self, idxbase)
68 raise ValueError("Invalid index base")
69
---> 70 self.api = cuSparse()
71 self.idxbase = (CUSPARSE_INDEX_BASE_ZERO,
72 CUSPARSE_INDEX_BASE_ONE)[idxbase]

~/mylib/anaconda_5.3/lib/python3.6/site-packages/pyculib/sparse/binding.py in __init__(self)
226 self._api.cusparseCreate(byref(self._handle))
227 except CuSparseError:
--> 228 raise RuntimeError("Cannot initialize cuSparse. "
229 "Could be caused by insufficient GPU memory.")
230 self._finalizer_track((self._handle, self._api))

RuntimeError: Cannot initialize cuSparse. Could be caused by insufficient GPU memory.

In [4]:

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce pyculib.sparse.Sparse() with the reported Python 3.6 environment, then read pyculib/sparse/api.py and pyculib/sparse/binding.py around cuSparse initialization, along with pyculib/utils/libutils.py. Done means identifying why cusparseCreate returns CUSPARSE_STATUS_NOT_INITIALIZED and confirming that Sparse() initializes successfully without masking the underlying cause.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.