diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index bd1c28d26a..d35db5f13e 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -245,6 +245,30 @@ jobs: working-directory: ${{github.workspace}}/build run: ctest -C ${{matrix.build_type}} --output-on-failure -L "conformance" --timeout 180 + adapter-build-devcloud: + name: Conformance test - Adapter L0 on devcloud Ubuntu + strategy: + fail-fast: false + matrix: + build_type: [Debug, Release] + compiler: [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}] + + runs-on: devcloud-pvc + steps: + - uses: actions/checkout@v3 + + - name: Install pip packages + run: python3 -m pip install -r third_party/requirements.txt + + - name: Download DPC++ + run: | + wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/sycl-nightly%2F20230626/dpcpp-compiler.tar.gz + tar -xvf ${{github.workspace}}/dpcpp_compiler.tar.gz + + - name: Execute CTS + run: > + srun -p pvc-shared scripts/devcloud-test.sh ${{github.workspace}} ${{matrix.compiler.c}} ${{matrix.compiler.cxx}} ${{matrix.build_type}} + windows-build: name: Build - Windows strategy: @@ -284,7 +308,6 @@ jobs: working-directory: ${{github.workspace}}/build run: ctest -C ${{matrix.build_type}} --output-on-failure -L "python|umf|loader|validation|tracing|unit|urtrace" - macos-build: name: Build - MacOS strategy: diff --git a/scripts/devcloud-test.sh b/scripts/devcloud-test.sh new file mode 100755 index 0000000000..63e99d6c93 --- /dev/null +++ b/scripts/devcloud-test.sh @@ -0,0 +1,45 @@ +#! /bin/bash +# Copyright (C) 2023 Intel Corporation + +# Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions. +# See LICENSE.TXT +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + +workspace=$1 +compiler_c=$2 +compiler_cxx=$3 +build_type=$4 + +set -e +hostname + +# SLURM/MPI integration is broken +unset SLURM_TASKS_PER_NODE +unset SLURM_JOBID + +source /opt/intel/oneapi/setvars.sh +source ${workspace}/dpcpp_compiler/startup.sh +export PATH=${workspace}/dpcpp_compiler/bin:$PATH +export CPATH=${workspace}/dpcpp_compiler/include:$CPATH +export LIBRARY_PATH=${workspace}/dpcpp_compiler/lib:$LIBRARY_PATH +export LD_LIBRARY_PATH=${workspace}/dpcpp_compiler/lib:$LD_LIBRARY_PATH + +cmake \ +-B${workspace}/build \ +-DCMAKE_C_COMPILER=${compiler_c} \ +-DCMAKE_CXX_COMPILER=${compiler_cxx} \ +-DUR_ENABLE_TRACING=ON \ +-DUR_DEVELOPER_MODE=ON \ +-DCMAKE_BUILD_TYPE=${build_type} \ +-DUR_BUILD_TESTS=ON \ +-DUR_FORMAT_CPP_STYLE=OFF \ +-DUR_BUILD_ADAPTER_L0=ON + +cmake --build ${workspace}/build -j $(nproc) + +unset LD_LIBRARY_PATH +unset LIBRARY_PATH +# Temporarily disabling platform test for L0, because of hang +# See issue: #824 +cd ${workspace}/build +ctest -C ${build_type} --output-on-failure -L "conformance" -E "platform-adapter_level_zero" --timeout 180