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

段错误 (核心已转储) #67

Open
king1111sadjfoisja opened this issue Apr 30, 2024 · 2 comments
Open

段错误 (核心已转储) #67

king1111sadjfoisja opened this issue Apr 30, 2024 · 2 comments

Comments

@king1111sadjfoisja
Copy link

本人之前跑代码由于CUDA版本不匹配,把服务器原来的CUDA卸载了重装了一个,目前nvcc -V与print(torch.version)都没问题,但运行程序时缺出现“段错误 (核心已转储)”(CUDA没删之前不会有这个问题),请问如何解决。
为了测试,我在同一个文件夹下建立了一个简单的脚本,可以运行,就是run.py和run_seg_gui.py运行不了
image

@Jumpat
Copy link
Owner

Jumpat commented May 2, 2024

你好,这类错误一般是nvcc版本不匹配,GCC(g++)版本不匹配,torch和CUDA版本不匹配等原因造成的。段错误这类报错可能出现的原因非常多,可能需要更多信息来debug

@king1111sadjfoisja
Copy link
Author

谢谢

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