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

[Build] Configuration failing with an error compiling torch_gpu_allocator PyTorch CPP extension #17966

Closed
Andrew-MAQ opened this issue Oct 16, 2023 · 1 comment
Labels
build build issues; typically submitted using template ep:CUDA issues related to the CUDA execution provider

Comments

@Andrew-MAQ
Copy link

Describe the issue

Installing the dependencies works fine. Trying to run torch_ort.configure results in an error compiling 'torch_gpu_allocator'. I tried downloading Anaconda, using a different python environment, using a different cuda-toolkit version, but nothing worked. Doing the same in Google Colab resulted in success. I am unsure why it is failing to get cudart_version from onnxruntime build info. Thank you!

Urgency

No response

Target platform

WSL2 Ubuntu 22.04.2 LTS

Build script

pip install onnx ninja
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip install onnxruntime-training -f https://download.onnxruntime.ai/onnxruntime_stable_cu116.html
pip install torch-ort
pip install --upgrade protobuf

Error / output

python -m torch_ort.configure
/home/maqsoftware/anaconda3/lib/python3.11/site-packages/onnxruntime/capi/onnxruntime_validation.py:114: UserWarning: WARNING: failed to get cudart_version from onnxruntime build info.
warnings.warn("WARNING: failed to get cudart_version from onnxruntime build info.")
Error: mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp-a34b3233.so.1 library.
Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it.
There was an error compiling 'torch_gpu_allocator' PyTorch CPP extension

Visual Studio Version

No response

GCC / Compiler Version

gcc version - 11.4.0 | nvcc version - cuda_12.2.r12.2 | python version 3.11.5

@Andrew-MAQ Andrew-MAQ added the build build issues; typically submitted using template label Oct 16, 2023
@github-actions github-actions bot added the ep:CUDA issues related to the CUDA execution provider label Oct 16, 2023
@Andrew-MAQ
Copy link
Author

Solved, needed to update / install numpy:
pip install -U numpy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template ep:CUDA issues related to the CUDA execution provider
Projects
None yet
Development

No branches or pull requests

1 participant