OSError: undefined symbol: free_gemm_select, version libcublasLt.so.11

When importing torch, I’m getting an OSError
Does anyone know what may be the issue?

I’ve created an environment on Ubuntu 20.04 LTS and have re-created it on 20.04.2 LTS

Error:

OSError                                   Traceback (most recent call last)
<ipython-input-1-fd2d69af7979> in <module>
      1 import os
      2 import shutil
----> 3 import torch
      4 import cv2
      5 import numpy as np

~/anaconda3/envs/cv/lib/python3.6/site-packages/torch/__init__.py in <module>
    187     # See Note [Global dependencies]
    188     if USE_GLOBAL_DEPS:
--> 189         _load_global_deps()
    190     from torch._C import *
    191 

~/anaconda3/envs/cv/lib/python3.6/site-packages/torch/__init__.py in _load_global_deps()
    140     lib_path = os.path.join(os.path.dirname(here), 'lib', lib_name)
    141 
--> 142     ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
    143 
    144 

~/anaconda3/envs/cv/lib/python3.6/ctypes/__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
    346 
    347         if handle is None:
--> 348             self._handle = _dlopen(self._name, mode)
    349         else:
    350             self._handle = handle

OSError: /home/wilson/anaconda3/envs/cv/lib/python3.6/site-packages/torch/lib/../../../../libcublas.so.11: undefined symbol: free_gemm_select, version libcublasLt.so.11

This should already be solved in this issue.

2 Likes

Thanks for the reply! Worked out perfectly