Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-27 07:23:54

0001 # This file is part of the ACTS project.
0002 #
0003 # Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 #
0005 # This Source Code Form is subject to the terms of the Mozilla Public
0006 # License, v. 2.0. If a copy of the MPL was not distributed with this
0007 # file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 #
0009 # This script is meant to configure the build/runtime environment of the
0010 # Docker containers that are used in the project's CI configuration.
0011 #
0012 # Usage: source .github/ci_setup.sh <platform name>
0013 #
0014 
0015 # The platform name.
0016 PLATFORM_NAME=$1
0017 
0018 # Set up the correct environment for the SYCL tests.
0019 # Do this also for the HIP based tests, since they are using the same image
0020 if [[ "${PLATFORM_NAME}" = "SYCL" ]] || [[ "${PLATFORM_NAME}" = "HIP-AMD" ]]; then
0021    echo "Setting up oneapi env for ${PLATFORM_NAME}"
0022    if [[ -f "/opt/intel/oneapi/setvars.sh" ]]; then
0023       source /opt/intel/oneapi/setvars.sh --include-intel-llvm
0024    fi
0025 fi
0026 
0027 # Make sure that GNU Make and CTest would use all available cores.
0028 export MAKEFLAGS="-j$(nproc)"
0029 export CTEST_PARALLEL_LEVEL=$(nproc)