mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-09 00:30:53 +00:00
activiate venv
This commit is contained in:
parent
f48019ec0c
commit
42e9680bce
2 changed files with 6 additions and 7 deletions
|
|
@ -184,7 +184,6 @@ jobs:
|
|||
/bin/bash -c "
|
||||
set -ex; \
|
||||
xargs -a /build/Release/perms.txt chmod a+x; \
|
||||
source /ort/env/bin/activate; \
|
||||
python /onnxruntime_src/tools/ci_build/build.py \
|
||||
--config Release \
|
||||
--cmake_extra_defines \
|
||||
|
|
@ -202,7 +201,7 @@ jobs:
|
|||
--parallel \
|
||||
--build_wheel \
|
||||
--skip_submodule_sync \
|
||||
--test --enable_onnx_tests --enable_transformers_tool_test \
|
||||
--test --enable_onnx_tests \
|
||||
--cmake_path /usr/bin/cmake --ctest_path /usr/bin/ctest"
|
||||
workingDirectory: $(Build.SourcesDirectory)
|
||||
displayName: 'Run onnxruntime unit tests'
|
||||
|
|
@ -231,7 +230,6 @@ jobs:
|
|||
onnxruntime-rocm-cibuild-rocm$(RocmVersion) \
|
||||
/bin/bash -c "
|
||||
set -ex; \
|
||||
source /ort/env/bin/activate; \
|
||||
python --version; \
|
||||
pytest /onnxruntime_src/onnxruntime/python/tools/kernel_explorer/ -n 4 --reruns 1 --durations=100"
|
||||
workingDirectory: $(Build.SourcesDirectory)
|
||||
|
|
|
|||
|
|
@ -15,8 +15,9 @@ LABEL PYTHON_VERSION="${PYTHON_VERSION}"
|
|||
ENV DEBIAN_FRONTEND=noninteractive \
|
||||
LC_ALL=C.UTF-8 \
|
||||
LANG=C.UTF-8 \
|
||||
LD_LIBRARY_PATH=/opt/rocm/lib:/usr/lib/x86_64-linux-gnu \
|
||||
PATH=/opt/rocm/bin:/usr/bin:/bin:/usr/sbin:/usr/local/bin
|
||||
VIRTUAL_ENV=/opt/venv \
|
||||
LD_LIBRARY_PATH=/opt/rocm/lib:/usr/lib/x86_64-linux-gnu::/opt/amdgpu/lib/x86_64-linux-gnu \
|
||||
PATH=/opt/venv/bin:/opt/rocm/bin:/usr/bin:/bin:/usr/sbin:/usr/local/bin
|
||||
|
||||
# Set default shell
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
|
@ -82,8 +83,8 @@ RUN mkdir -p /tmp/ccache && \
|
|||
# Set up virtual environment for Python and install dependencies
|
||||
WORKDIR /ort
|
||||
COPY scripts/requirements.txt /ort/
|
||||
RUN python3 -m venv /ort/env && \
|
||||
source /ort/env/bin/activate && \
|
||||
RUN python3 -m venv ${VIRTUAL_ENV} && \
|
||||
source ${VIRTUAL_ENV}/bin/activate && \
|
||||
pip install --upgrade pip setuptools wheel && \
|
||||
pip install -r /ort/requirements.txt && \
|
||||
pip install ml_dtypes pytest-xdist pytest-rerunfailures scipy
|
||||
|
|
|
|||
Loading…
Reference in a new issue