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

Issue with torchsort CUDA extension: ImportError and missing toolchain on Linux #1

Open
ilovesdu opened this issue Jan 12, 2025 · 0 comments

Comments

@ilovesdu
Copy link

Hi there,

I encountered an error while using the torchsort package on Linux. The error message is as follows:

ImportError: You are trying to use the torchsort CUDA extension, but it looks like it is not available. Make sure you have the CUDA toolchain installed, and reinstall torchsort with pip install --force-reinstall --no-cache-dir torchsort to rebuild the extension.

It seems that the CUDA extension for torchsort is not available, and the system is unable to locate the required CUDA toolchain. I have already tried reinstalling the package using the suggested command, but the issue persists.

Here are the details of my environment:

Operating system: Linux
CUDA version: 11.8 (via nvidia-cuda-runtime-cu11)
PyTorch version: 2.4.1+cu118
Installed torchsort version: 0.1.9
Relevant NVIDIA libraries:
nvidia-cudnn-cu11 9.1.0.70
nvidia-cuda-runtime-cu11 11.8.89
nvidia-nvtx-cu11 11.8.86
Would appreciate any guidance on how to resolve this issue.

Thanks in advance!

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

1 participant