|
| 1 | +## Copyright 2022 Intel Corporation |
| 2 | +## SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +name: CI Linux GPU Workflow |
| 5 | + |
| 6 | +on: |
| 7 | + push: |
| 8 | + workflow_dispatch: |
| 9 | + |
| 10 | +concurrency: |
| 11 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 12 | + cancel-in-progress: true |
| 13 | + |
| 14 | +jobs: |
| 15 | + |
| 16 | +### BUILD JOBS ### |
| 17 | + |
| 18 | + build-ubuntu2204-DG2-JIT: |
| 19 | + uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker_gpu.yml@main |
| 20 | + secrets: inherit |
| 21 | + with: |
| 22 | + force-delete: true # guarantees .gitattributes are respected in working dir |
| 23 | + gfx-driver-version: neo-builds/ci/master/ci-neo-master-025731/artifacts/linux/ubuntu/22.04 |
| 24 | + dpcpp-version: sycl-nightly/20221214 |
| 25 | + install-gfx-driver: true |
| 26 | + submodules: true |
| 27 | + image: ubuntu:22.04 |
| 28 | + cmd: | |
| 29 | + export SYCL_BUNDLE_ROOT=$DPCPP_ROOT |
| 30 | + export CC=clang |
| 31 | + export CXX=clang++ |
| 32 | + scripts/build/linux.sh -G Ninja -DBUILD_GLFW=OFF -DBUILD_OSPRAY_MODULE_MULTIDEVICE=OFF -DBUILD_GPU_SUPPORT=ON -DOPENVKL_URL=https://${RENDERKIT_GITHUB_TOKEN}@github.com/intel-innersource/libraries.graphics.renderkit.openvkl.git -DOPENVKL_BRANCH=gpu-devel |
| 33 | + artifact-out: build-ubuntu2204-DG2-JIT |
| 34 | + artifact-path: build/install/ospray build/install/embree build/CMakeCache.txt build/*/build/CMakeCache.txt |
| 35 | + |
| 36 | + build-ubuntu2204-DG2-JIT-mpi: |
| 37 | + uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker_gpu.yml@tgt/support_oneapi_icx |
| 38 | + secrets: inherit |
| 39 | + with: |
| 40 | + force-delete: true # guarantees .gitattributes are respected in working dir |
| 41 | + gfx-driver-version: neo-builds/ci/master/ci-neo-master-025731/artifacts/linux/ubuntu/22.04 |
| 42 | + dpcpp-version: intel/2023.0 |
| 43 | + install-gfx-driver: true |
| 44 | + submodules: true |
| 45 | + image: ubuntu:22.04 |
| 46 | + cmd: | |
| 47 | + sudo apt remove openmpi-* libopenmpi3 -y |
| 48 | + module load level-zero/1.9.4 |
| 49 | + module load mpi |
| 50 | + export CC=icx |
| 51 | + export CXX=icpx |
| 52 | + scripts/build/linux.sh -G Ninja -DBUILD_GLFW=OFF -DBUILD_OSPRAY_MODULE_MPI=ON -DBUILD_OSPRAY_MODULE_MULTIDEVICE=OFF -DBUILD_GPU_SUPPORT=ON -DOPENVKL_URL=https://${RENDERKIT_GITHUB_TOKEN}@github.com/intel-innersource/libraries.graphics.renderkit.openvkl.git -DOPENVKL_BRANCH=gpu-devel |
| 53 | + artifact-out: build-ubuntu2204-DG2-JIT-mpi |
| 54 | + artifact-path: build/install/ospray build/install/embree build/CMakeCache.txt build/*/build/CMakeCache.txt |
| 55 | + |
| 56 | +### TEST JOBS ### |
| 57 | + |
| 58 | + test-ubuntu2204-DG2-JIT: |
| 59 | + needs: [build-ubuntu2204-DG2-JIT] |
| 60 | + uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker_gpu.yml@main |
| 61 | + secrets: inherit |
| 62 | + with: |
| 63 | + gfx-driver-version: neo-builds/ci/master/ci-neo-master-025731/artifacts/linux/ubuntu/22.04 |
| 64 | + dpcpp-version: sycl-nightly/20221214 |
| 65 | + install-gfx-driver: true |
| 66 | + submodules: true |
| 67 | + image: ubuntu:22.04 |
| 68 | + options: --device=/dev/dri:/dev/dri |
| 69 | + runs-on: '[ "Linux", "docker", "dg2" ]' |
| 70 | + artifact-in: build-ubuntu2204-DG2-JIT |
| 71 | + artifact-out: test-ubuntu2204-DG2-JIT |
| 72 | + artifact-path: build_regression_tests/tests*.xml build_regression_tests/failed* |
| 73 | + artifact-on-failure: true |
| 74 | + cmd: | |
| 75 | + export SYCL_BUNDLE_ROOT=$DPCPP_ROOT |
| 76 | + export CC=clang |
| 77 | + export CXX=clang++ |
| 78 | + export LD_LIBRARY_PATH="$GITHUB_WORKSPACE/build/install/ospray/lib:$GITHUB_WORKSPACE/build/install/embree/lib:$LD_LIBRARY_PATH" |
| 79 | + export PATH="$GITHUB_WORKSPACE/build/install/ospray/bin:$PATH" |
| 80 | + scripts/tests/run_gpu_tests.sh "$GITHUB_WORKSPACE" |
| 81 | +
|
| 82 | + test-ubuntu2204-DG2-JIT-mpi: |
| 83 | + needs: [build-ubuntu2204-DG2-JIT-mpi] |
| 84 | + uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker_gpu.yml@tgt/support_oneapi_icx |
| 85 | + secrets: inherit |
| 86 | + with: |
| 87 | + gfx-driver-version: neo-builds/ci/master/ci-neo-master-025731/artifacts/linux/ubuntu/22.04 |
| 88 | + dpcpp-version: intel/2023.0 |
| 89 | + install-gfx-driver: true |
| 90 | + submodules: true |
| 91 | + image: ubuntu:22.04 |
| 92 | + options: --device=/dev/dri:/dev/dri |
| 93 | + runs-on: '[ "Linux", "docker", "dg2" ]' |
| 94 | + artifact-in: build-ubuntu2204-DG2-JIT-mpi |
| 95 | + artifact-out: test-ubuntu2204-DG2-JIT-mpi |
| 96 | + artifact-path: build_regression_tests/tests*.xml build_regression_tests/failed* |
| 97 | + artifact-on-failure: true |
| 98 | + cmd: | |
| 99 | + sudo apt remove openmpi-* libopenmpi3 -y |
| 100 | + module load level-zero/1.9.4 |
| 101 | + module load mpi |
| 102 | + export LD_LIBRARY_PATH="$GITHUB_WORKSPACE/build/install/ospray/lib:$GITHUB_WORKSPACE/build/install/embree/lib:$LD_LIBRARY_PATH" |
| 103 | + export PATH="$GITHUB_WORKSPACE/build/install/ospray/bin:$PATH" |
| 104 | + scripts/tests/run_gpu_tests.sh "$GITHUB_WORKSPACE" TEST_MPI |
0 commit comments