onnxruntime/tools/ci_build/github/linux/docker
Thiago Crepaldi 83be3759bc
Add post-install command to build PyTorch CPP extensions from within onnxruntime package (#8027)
ORTModule requires two PyTorch CPP extensions that are currently JIT compiled. The runtime compilation can cause issues in some environments without all build requirements or in environments with multiple instances of ORTModule running in parallel

This PR creates a custom command to compile such extensions that must be manually executed before ORTModule is executed for the first time. When users try to use ORTModule before the extensions are compiled, an error with instructions are raised

PyTorch CPP Extensions for ORTModule can be compiled by running:
python -m onnxruntime.training.ortmodule.torch_cpp_extensions.install

Full build environment is needed for this
2021-06-28 18:11:58 -07:00
..
build_scripts
scripts Add post-install command to build PyTorch CPP extensions from within onnxruntime package (#8027) 2021-06-28 18:11:58 -07:00
cuda_manylinux2010.repo
cuda_manylinux2014.repo
Dockerfile.arm_yocto
Dockerfile.manylinux2014_cpu
Dockerfile.manylinux2014_cuda11
Dockerfile.manylinux2014_cuda11_1_tensorrt7_2
Dockerfile.manylinux2014_cuda11_tensorrt7_1
Dockerfile.manylinux2014_cuda11_tensorrt7_2
Dockerfile.manylinux2014_rocm
Dockerfile.manylinux2014_training_cuda10_2
Dockerfile.manylinux2014_training_cuda11_1
Dockerfile.ubuntu
Dockerfile.ubuntu_for_android
Dockerfile.ubuntu_for_arm
Dockerfile.ubuntu_gpu_training
Dockerfile.ubuntu_openvino
Dockerfile.ubuntu_server
Dockerfile.ubuntu_tensorrt
Dockerfile.ubuntu_tensorrt7_1
manylinux-entrypoint