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

Add CUDA 12 docker file #17921

Closed
wants to merge 3 commits into from
Closed

Add CUDA 12 docker file #17921

wants to merge 3 commits into from

Conversation

snnn
Copy link
Member

@snnn snnn commented Oct 12, 2023

Description

You can build it locally with the following commands:

git clone https://github.com/microsoft/onnxruntime.git
cd onnxruntime
git clone https://github.com/pypa/manylinux.git
cd manylinux
git checkout 5eda9aded5462201e6310105728d33016e637ea7
cd ..
python3 tools/ci_build/get_docker_image.py --dockerfile tools/ci_build/github/linux/docker/Dockerfile.manylinux2_28_cuda11_8_tensorrt8_6 --context tools/ci_build/github/linux/docker --docker-build-args '--build-arg BASEIMAGE=nvidia/cuda:12.2.0-devel-ubi8 --build-arg BUILD_UID=8229510 --build-arg POLICY=manylinux_2_28 --build-arg PLATFORM=x86_64 --build-arg PREPEND_PATH=/usr/local/cuda/bin --build-arg LD_LIBRARY_PATH_ARG=/usr/local/lib64 --build-arg DEVTOOLSET_ROOTPATH=/usr' --repository orttrt --manylinux-src manylinux --multiple_repos
export BUILD_SOURCESDIRECTORY=pwd
export BUILD_BINARIESDIRECTORY=$HOME/build
mkdir $BUILD_BINARIESDIRECTORY
bash 'tools/ci_build/github/linux/run_python_dockerbuild.sh' -i orttrt -d "GPU" -c Release -x "--use_azure"

You must change the BUILD_UID to your userid. You can get it from Linux's id command.

@jchen351, please run the commands locally. I expect the last command(run_python_dockerbuild) will fail. Because cuda version is hardcoded there. Please fix that with a new PR.

Motivation and Context

For adding CUDA 12 pipelines.

@snnn snnn marked this pull request as draft October 12, 2023 21:10
@snnn snnn marked this pull request as ready for review October 12, 2023 21:21
@snnn snnn closed this Oct 19, 2023
@snnn snnn deleted the snnn/cuda12_docker branch December 19, 2023 00:59
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

Successfully merging this pull request may close these issues.

1 participant