Skip to content

CudaSupportError: Error at driver init: CUDA driver library cannot be found #73

@pauliferni

Description

@pauliferni

I install

conda install cudatoolkit
pip install falsecolor
pip install argparse

but I always get the same error

CudaSupportError Traceback (most recent call last) in ----> 1 level_virtualHE = fc.rapidFalseColor(nuc_nobg, cyto_nobg, nuclei_RGBsettings, cyto_RGBsettings, 2 run_FlatField_nuc = True, run_FlatField_cyto = True, 3 nuc_normfactor = C_nuc, 4 cyto_normfactor = C_cyto) 5

~\anaconda3\lib\site-packages\falsecolor\coloring.py in rapidFalseColor(nuclei, cyto, nuc_settings, cyto_settings, TPB, nuc_normfactor, cyto_normfactor, run_FlatField_nuc, run_FlatField_cyto, nuc_bg_threshold, cyto_bg_threshold) 179 180 # allocate memory for background subtraction --> 181 pre_nuc_output = cuda.device_array(nuclei.shape) 182 nuc_global_mem = cuda.to_device(nuclei) 183

~\anaconda3\lib\site-packages\numba\cuda\cudadrv\devices.py in _require_cuda_context(*args, **kws) 221 @functools.wraps(fn) 222 def _require_cuda_context(*args, **kws): --> 223 with _runtime.ensure_context(): 224 return fn(*args, **kws) 225

~\anaconda3\lib\contextlib.py in enter(self) 111 del self.args, self.kwds, self.func 112 try: --> 113 return next(self.gen) 114 except StopIteration: 115 raise RuntimeError("generator didn't yield") from None

~\anaconda3\lib\site-packages\numba\cuda\cudadrv\devices.py in ensure_context(self) 119 any top-level Numba CUDA API. 120 """ --> 121 with driver.get_active_context(): 122 oldctx = self._get_attached_context() 123 newctx = self.get_or_create_context(None)

~\anaconda3\lib\site-packages\numba\cuda\cudadrv\driver.py in enter(self) 391 else: 392 hctx = drvapi.cu_context(0) --> 393 driver.cuCtxGetCurrent(byref(hctx)) 394 hctx = hctx if hctx.value else None 395

~\anaconda3\lib\site-packages\numba\cuda\cudadrv\driver.py in getattr(self, fname) 281 282 if self.initialization_error is not None: --> 283 raise CudaSupportError("Error at driver init: \n%s:" % 284 self.initialization_error) 285

CudaSupportError: Error at driver init: CUDA driver library cannot be found. If you are sure that a CUDA driver is installed, try setting environment variable NUMBA_CUDA_DRIVER with the file path of the CUDA driver shared library.

What do I have to install then? Because the directory is assumed to be already running.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions