-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
RuntimeError: Library cublasLt is not initialized[BUG/Help] <title> #465
Comments
我也遇到了同样的问题 cli_demo web_demo 没问题 也能吃上gpu 跑 train就报这错 3090 24G显卡 |
老问题了,关注那么久也没看到有个说法 |
我也是一样的问题,cuda版本11.2 pytorch==1.13.1 |
你试一下安装 cudatoolkit 呢 |
有对应版本限制吗 |
|
我的原本也有cudatoolkit了,服务器CUDA版本是11.3,我安装的cudatoolkit也是11.3,也还是跑不了,报错还是同样的错 |
cuda11.2 在conda模式安装虚拟环境,同样的错误 |
|
vim ~/.bashrc 看下里面指定的cuda版本对不对 |
我的问题解决了,参考这篇博客的依赖,用项目配套的依赖会报各种CUDA错误https://blog.csdn.net/v_JULY_v/article/details/129880836 |
Same problem with latest packages in win10. My solution Add the directory containing the cublasLt DLL into system environment variables Detailed debug process
run the code in cmd got
locate the code. # D:\software\miniconda3\envs\py310\lib\site-packages\cpm_kernels\library\base.py
class Lib:
def __init__(self, name):
self.__name = name
print(self.__name)
if sys.platform.startswith("win"):
lib_path = windows_find_lib(self.__name)
self.__lib_path = lib_path
print(self.__lib_path)
if lib_path is not None:
self.__lib = ctypes.WinDLL(lib_path)
print(self.__lib)
else:
self.__lib = None
elif sys.platform.startswith("linux"):
lib_path = unix_find_lib(self.__name)
self.__lib_path = lib_path
if lib_path is not None:
self.__lib = ctypes.cdll.LoadLibrary(lib_path)
else:
self.__lib = None
else:
raise RuntimeError("Unknown platform: %s" % sys.platform)
...
def bind(self, name, arg_types, ret_type) -> Callable[[LibCall], LibCall]:
if self.__lib is None:
def decorator(f):
@wraps(f)
def wrapper(*args, **kwargs):
raise RuntimeError("Library %s is not initialized" % self.__name)
return wrapper
return decorator and use the simple theoretically, the following solutions can work too. (But I'm too lazy to give them a try)
In short,
|
我是ubuntu22.04,也是报这个错,但我看我上面是装了cuda的. $ apt list --installed | grep cuda
cuda-compat-11-7/now 515.86.01-1 amd64 [installed,local]
cuda-cudart-11-7/now 11.7.99-1 amd64 [installed,local]
cuda-keyring/now 1.0-1 all [installed,local]
cuda-toolkit-11-7-config-common/now 11.7.99-1 all [installed,local]
cuda-toolkit-11-config-common/now 11.8.89-1 all [installed,local]
cuda-toolkit-config-common/now 12.0.107-1 all [installed,local] |
|
我也碰到了这个问题,我是在跑 |
Is there an existing issue for this?
Current Behavior
运行train.sh时,就报了这个错误:
RuntimeError: Library cublasLt is not initialized
Expected Behavior
No response
Steps To Reproduce
运行train.sh
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: