Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions qa/L0_backend_python/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,20 @@ create_python_backend_stub() {
git clone ${TRITON_REPO_ORGANIZATION}/python_backend -b $PYTHON_BACKEND_REPO_TAG
CUDA_PATH=$(readlink -f /usr/local/cuda)
export CMAKE_POLICY_VERSION_MINIMUM=3.5
(cd python_backend/ && mkdir builddir && cd builddir && \
export CMAKE_POLICY_VERSION_MINIMUM=3.5 && \
cmake -DTRITON_ENABLE_GPU=ON -DCMAKE_CUDA_COMPILER=$CUDA_PATH/bin/nvcc \
-DCUDAToolkit_ROOT=$CUDA_PATH -DTRITON_REPO_ORGANIZATION:STRING=${TRITON_REPO_ORGANIZATION} \
-DTRITON_BACKEND_REPO_TAG=$TRITON_BACKEND_REPO_TAG -DTRITON_COMMON_REPO_TAG=$TRITON_COMMON_REPO_TAG \
-DTRITON_CORE_REPO_TAG=$TRITON_CORE_REPO_TAG -DPYBIND11_PYTHON_VERSION=$PY_VERSION ../ && \
make -j18 triton-python-backend-stub)
(cd python_backend/ \
&& mkdir builddir \
&& cd builddir \
&& export CMAKE_POLICY_VERSION_MINIMUM=3.5 \
&& cmake \
-DCMAKE_CUDA_COMPILER=$CUDA_PATH/bin/nvcc \
-DCMAKE_INCLUDE_PATH:STRING=/usr/include \
-DCUDAToolkit_ROOT=$CUDA_PATH \
-DPYBIND11_PYTHON_VERSION=$PY_VERSION \
-DTRITON_BACKEND_REPO_TAG=$TRITON_BACKEND_REPO_TAG \
-DTRITON_COMMON_REPO_TAG=$TRITON_COMMON_REPO_TAG \
-DTRITON_CORE_REPO_TAG=$TRITON_CORE_REPO_TAG \
-DTRITON_ENABLE_GPU=ON \
-DTRITON_REPO_ORGANIZATION:STRING=${TRITON_REPO_ORGANIZATION} \
-S ../ \
&& cmake --build . --target triton-python-backend-stub -j18)
}
2 changes: 1 addition & 1 deletion qa/L0_backend_python/env/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ install_conda
path_to_conda_pack='$$TRITON_MODEL_DIRECTORY/python_3_12_environment.tar.gz'
create_conda_env "3.12" "python-3-12"
conda install -c conda-forge libstdcxx-ng=14 -y
TORCH_VERSION="2.6.0"
TORCH_VERSION="2.8.0"
conda install numpy=1.26.4 -y
if [ $TRITON_RHEL -eq 1 ]; then
TORCH_VERISON="2.17.0"
Expand Down
4 changes: 2 additions & 2 deletions qa/L0_backend_python/setup_python_enviroment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ conda update -n base -c defaults conda -y
# been setup correctly.
if [ ${PYTHON_ENV_VERSION} = "11" ]; then
create_conda_env "3.11" "python-3-11"
conda install pytorch=2.6.0 -y
conda install pytorch=2.8.0 -y
conda install -c conda-forge libstdcxx-ng=14 -y
conda install numpy=1.23.5 -y
EXPECTED_VERSION_STRING="Python version is 3.11, NumPy version is 1.23.5, and PyTorch version is 2.6.0"
EXPECTED_VERSION_STRING="Python version is 3.11, NumPy version is 1.23.5, and PyTorch version is 2.8.0"
create_python_backend_stub
conda-pack -o python3.11.tar.gz
path_to_conda_pack="$PWD/python-3-11"
Expand Down
Loading