Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: /usr/lib/x86_64-linux-gnu/libcuda.so.1: file too short #115

Open
hyjforesight opened this issue Jun 15, 2023 · 1 comment
Open

Comments

@hyjforesight
Copy link

Hello RAPIDS,
Thanks for developing this amazing package.
I met 'ImportError: /usr/lib/x86_64-linux-gnu/libcuda.so.1: file too short' when importing packages.

import scanpy as sc
import anndata

import time
import os, wget

import cudf
import cupy as cp

from cuml.decomposition import PCA
from cuml.manifold import TSNE
from cuml.cluster import KMeans
from cuml.preprocessing import StandardScaler

import rapids_scanpy_funcs

import warnings
warnings.filterwarnings('ignore', 'Expected ')
warnings.simplefilter('ignore')

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-40576262d873> in <module>
      5 import os, wget
      6 
----> 7 import cudf
      8 import cupy as cp
      9 

/opt/conda/envs/rapids/lib/python3.7/site-packages/cudf/__init__.py in <module>
      2 from cudf.utils.gpu_utils import validate_setup
      3 
----> 4 validate_setup()
      5 
      6 import cupy

/opt/conda/envs/rapids/lib/python3.7/site-packages/cudf/utils/gpu_utils.py in validate_setup()
     16     import warnings
     17 
---> 18     from rmm._cuda.gpu import (
     19         CUDARuntimeError,
     20         cudaDeviceAttr,

/opt/conda/envs/rapids/lib/python3.7/site-packages/rmm/__init__.py in <module>
     14 import weakref
     15 
---> 16 from rmm import mr
     17 from rmm._lib.device_buffer import DeviceBuffer
     18 from rmm._version import get_versions

/opt/conda/envs/rapids/lib/python3.7/site-packages/rmm/mr.py in <module>
      1 # Copyright (c) 2020, NVIDIA CORPORATION.
----> 2 from rmm._lib.memory_resource import (
      3     BinningMemoryResource,
      4     CudaAsyncMemoryResource,
      5     CudaMemoryResource,

/opt/conda/envs/rapids/lib/python3.7/site-packages/rmm/_lib/__init__.py in <module>
      1 # Copyright (c) 2019-2020, NVIDIA CORPORATION.
      2 
----> 3 from .device_buffer import DeviceBuffer

ImportError: /usr/lib/x86_64-linux-gnu/libcuda.so.1: file too short

I googled it. Some people recommend nvidia-docker2. I tried, but failed.

nvidia-docker run -v /home/hyjforesight/:/data -p 8888:8888 -p 8787:8787 -p 8786:8786 claraparabricks/single-cell-examples_rapids_cuda11.0
docker: Error response from daemon: Unknown runtime specified nvidia.
See 'docker run --help'.

Could you please help me with this issue? I'm working in Windows 11 22H2 WSL2 Ubuntu 22.04.
Thanks!
Best,
Yuanjian

@gloknar
Copy link

gloknar commented Jul 17, 2023

Hi, that error points to the following file:

/usr/lib/x86_64-linux-gnu/libcuda.so.1

Could you please check if you can find it in your PC? Perhaps reinstalling CUDA solves the error. Hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants