Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-intel committed Dec 12, 2024
1 parent fa013cc commit 8f193b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 76 deletions.
2 changes: 0 additions & 2 deletions .github/dockerfiles/ov_build/ubuntu_22_04_riscv/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ RUN dpkg --add-architecture riscv64 && \
apt-get -y install curl && apt-get install libgomp1:riscv64 && \
apt-get install libatomic1:riscv64

RUN echo 'libgomp installed'

# Setup pip
ENV PIP_VERSION="24.0"
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
Expand Down
76 changes: 2 additions & 74 deletions .github/workflows/dev_cpu_linux_riscv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ jobs:
- name: System info
uses: ./openvino/.github/actions/system_info

# remove ?
- name: Setup ccache
id: ccache_restore
uses: ./openvino/.github/actions/cache
Expand All @@ -130,21 +129,14 @@ jobs:
run: |
mkdir ${XUANTIE_DIR}
pushd ${XUANTIE_DIR}
echo 'what is going on ?'
ls -la ${XUANTIE_BIN_PATH}
cp ${XUANTIE_BIN_PATH}${XUANTIE_TAR_NAME}.tar ${XUANTIE_DIR}
ls -la ${XUANTIE_DIR}
tar -xf ${XUANTIE_TAR_NAME}.tar
chmod -R 777 ${XUANTIE_TAR_NAME}
ls -la ${XUANTIE_TAR_NAME}/libexec/gcc/riscv64-unknown-linux-gnu/10.4.0/
python3 -m pip install --upgrade pip setuptools wheel
echo 'prepare py - riscv interaction'
ln -s /usr/include/riscv64-linux-gnu/ /usr/include/python3.10/
# echo 'show old link'
# ls -la ${XUANTIE_DIR}/libexec/gcc/riscv64-unknown-linux-gnu/10.4.0/
# echo 'show new link'
# cd ${XUANTIE_DIR}/libexec/gcc/riscv64-unknown-linux-gnu/10.4.0/
# ln -s liblto_plugin.so.0.0.0 liblto_plugin.so
popd
- name: CMake configure - OpenVINO - 2
Expand Down Expand Up @@ -246,7 +238,6 @@ jobs:
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
INSTALL_DIR: ${{ github.workspace }}/install
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
# PARALLEL_TEST_SCRIPT: ${{ github.workspace }}/install/tests/functional_test_utils/layer_tests_summary/run_parallel.py
XUANTIE_TAR_NAME: 'Xuantie-900-gcc-linux-5.15.0-glibc-x86_64-V2.8.1'
XUANTIE_DIR: /__w/openvino/xuantie

Expand All @@ -269,20 +260,11 @@ jobs:
name: openvino_tests
path: ${{ env.INSTALL_TEST_DIR }}

# # Needed as ${{ github.workspace }} is not working correctly when using Docker
# - name: Setup Variables
# run: |
# echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
# echo 'show tests dir'
# ls -la ${{ env.INSTALL_TEST_DIR }}


# Needed as ${{ github.workspace }} is not working correctly when using Docker
- name: Setup Variables
run: |
echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
# echo "PARALLEL_TEST_SCRIPT=$GITHUB_WORKSPACE/install/tests/functional_test_utils/layer_tests_summary/run_parallel.py" >> "$GITHUB_ENV"
- name: Extract OpenVINO packages
run: |
Expand All @@ -295,24 +277,6 @@ jobs:
ls -la $INSTALL_TEST_DIR/tests
popd
# - name: Fetch setup_python action
# uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# with:
# sparse-checkout: |
# .github/actions/setup_python/action.yml
# sparse-checkout-cone-mode: false
# path: 'openvino'

# # - name: Setup Python 3.11
# # uses: ./openvino/.github/actions/setup_python
# # with:
# # version: '3.11'
# # should-setup-pip-paths: 'false'
# # self-hosted-runner: ${{ runner.os == 'Linux' }}

# - name: Install python dependencies for run_parallel.py
# run: python3 -m pip install -r ${INSTALL_DIR}/functional_test_utils/layer_tests_summary/requirements.txt

- name: Intel CPU plugin func tests
run: |
# Needed as the Linux CC does not require setupvars to work
Expand All @@ -321,46 +285,10 @@ jobs:
fi
# Needed as ze_loader.so is under INSTALL_TEST_DIR
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${INSTALL_TEST_DIR}/tests
# ls -LA ${XUANTIE_DIR}/${XUANTIE_TAR_NAME}/
chmod -R 777 ${XUANTIE_DIR}/${XUANTIE_TAR_NAME}
# apt-get install libgomp1
# apt-get update && apt-get install -y --no-install-recommends apt-utils
# apt-get -y install curl
# apt-get install libgomp1
pushd ${INSTALL_TEST_DIR}/tests
echo 'find libatomic1 - start'
ldconfig -p | grep libatomic
echo 'find libatomic1 - end'
popd
${XUANTIE_DIR}/${XUANTIE_TAR_NAME}/bin/qemu-riscv64 -cpu c910v ${INSTALL_TEST_DIR}/tests/ov_cpu_func_tests --gtest_filter=*smoke_AdaPoolAvg4DLayoutTest* --gtest_print_time=1
timeout-minutes: 25

- name: Upload Test Results
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
if: always()
with:
name: test-results-functional-cpu
path: |
${{ env.INSTALL_TEST_DIR }}/logs/*.log
${{ env.INSTALL_TEST_DIR }}/logs/failed/*.log
${{ env.INSTALL_TEST_DIR }}/logs/crashed/*.log
${{ env.INSTALL_TEST_DIR }}/logs/hanged/*.log
${{ env.INSTALL_TEST_DIR }}/logs/interapted/*.log
${{ env.INSTALL_TEST_DIR }}/logs/hash_table.csv
if-no-files-found: 'error'


Overall_Status:
name: ci/gha_overall_status_linux_riscv
needs: [Smart_CI, Build]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Check status of all jobs
if: >-
${{
contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'cancelled')
}}
run: exit 1
run: |
echo 'to do'

0 comments on commit 8f193b0

Please sign in to comment.