File tree Expand file tree Collapse file tree 6 files changed +72
-41
lines changed Expand file tree Collapse file tree 6 files changed +72
-41
lines changed Original file line number Diff line number Diff line change 33ARG VMAJ
44ARG VMIN
55FROM ghcr.io/oneapi-src/level-zero-linux-compute/rhel:${VMAJ}.${VMIN}
6+
7+ RUN <<EOF
8+ git clone --recurse-submodules --branch boost-1.76.0 https://github.com/boostorg/boost.git
9+ cd boost
10+ ./bootstrap.sh
11+ ./b2 install \
12+ -j 4 \
13+ address-model=64 \
14+ --with-chrono \
15+ --with-log \
16+ --with-program_options \
17+ --with-serialization \
18+ --with-system \
19+ --with-timer \
20+ --with-date_time
21+ cd ..
22+ rm -rf boost
23+ EOF
Original file line number Diff line number Diff line change @@ -6,9 +6,29 @@ FROM ghcr.io/oneapi-src/level-zero-linux-compute/sles:${VMAJ}.${VMIN}
66
77SHELL ["/bin/bash" , "-e" , "-c" ]
88
9+ ARG VMAJ
10+ ARG VMIN
11+
12+ RUN <<EOF
13+ if [ "$VMIN" = "4" ]; then
14+ update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 120 \
15+ --slave /usr/bin/g++ g++ /usr/bin/g++-11
16+ update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-11 120
17+ update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-11 120
18+ elif [ "$VMIN" = "6" ]; then
19+ update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 120 \
20+ --slave /usr/bin/g++ g++ /usr/bin/g++-13
21+ update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-13 120
22+ update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-13 120
23+ fi
24+ update-alternatives --config gcc
25+ update-alternatives --config c++
26+ update-alternatives --config cc
27+ EOF
28+
929# Static libraries for boost are not part of the SLES distribution
1030RUN <<EOF
11- git clone --recurse-submodules --branch boost-1.70 .0 https://github.com/boostorg/boost.git
31+ git clone --recurse-submodules --branch boost-1.76 .0 https://github.com/boostorg/boost.git
1232cd boost
1333./bootstrap.sh
1434./b2 install \
@@ -19,7 +39,8 @@ cd boost
1939 --with-program_options \
2040 --with-serialization \
2141 --with-system \
42+ --with-date_time \
2243 --with-timer
2344cd ..
2445rm -rf boost
25- EOF
46+ EOF
Original file line number Diff line number Diff line change @@ -4,32 +4,23 @@ ARG VMAJ
44ARG VMIN
55FROM ghcr.io/oneapi-src/level-zero-linux-compute/ubuntu:${VMAJ}.${VMIN}
66
7- ARG VMAJ
8- ARG VMIN
9-
10- SHELL ["/bin/bash" , "-e" , "-c" ]
11-
12- ENV DEBIAN_FRONTEND=noninteractive
13- # /etc/apt/apt.conf.d/docker-clean doesn't work on older versions of docker for U2204 containers
14- RUN --mount=type=cache,target=/var/cache/apt <<EOF
15- rm /etc/apt/apt.conf.d/docker-clean
16- apt-get update
17- apt-get install -o Dpkg::Options::="--force-overwrite" -y \
18- build-essential \
19- ccache \
20- clang-tidy \
21- cmake \
22- curl \
23- file \
24- git \
25- ninja-build \
26- libboost-all-dev \
27- libpapi-dev \
28- libpng-dev \
29- libva-dev \
30- ocl-icd-opencl-dev \
31- opencl-headers \
32- python3 \
33- python3-pip
34- rm -rf /var/lib/apt/lists/*
35- EOF
7+ ENV BOOST_BUILD_PATH=/boost_1_76_0
8+ ADD https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.gz /boost_1_76_0.tar.gz
9+ RUN <<EOF
10+ tar xf /boost_1_76_0.tar.gz
11+ rm /boost_1_76_0.tar.gz
12+ cd /boost_1_76_0
13+ ./bootstrap.sh
14+ ./b2 install \
15+ -j $(nproc) \
16+ link=static \
17+ address-model=64 \
18+ --with-chrono \
19+ --with-log \
20+ --with-program_options \
21+ --with-regex \
22+ --with-serialization \
23+ --with-system \
24+ --with-timer
25+ rm -rf /boost_1_76_0
26+ EOF
Original file line number Diff line number Diff line change @@ -90,16 +90,17 @@ cd ../.. && `
9090rm -rf OpenCL-ICD-Loader-2024.10.24"
9191
9292RUN "`
93- curl -OSL --ssl-no-revoke https://archives.boost.io/release/1.73 .0/source/boost_1_73_0 .7z && `
94- 7z.exe x boost_1_73_0 .7z && `
95- cd boost_1_73_0 && `
93+ curl -OSL --ssl-no-revoke https://archives.boost.io/release/1.76 .0/source/boost_1_76_0 .7z && `
94+ 7z.exe x boost_1_76_0 .7z && `
95+ cd boost_1_76_0 && `
9696MSYS_NO_PATHCONV=1 cmd /c bootstrap.bat && `
9797./b2.exe install -j 16 address-model=64 `
9898 --with-chrono `
9999 --with-log `
100100 --with-program_options `
101101 --with-serialization `
102102 --with-system `
103+ --with-date_time `
103104 --with-timer && `
104105cd .. && `
105- rm -rf boost_1_73_0 "
106+ rm -rf boost_1_76_0 "
Original file line number Diff line number Diff line change @@ -137,10 +137,9 @@ jobs:
137137 {name: ubuntu, vmaj: 22, vmin: '04'},
138138 {name: ubuntu, vmaj: 24, vmin: '04'},
139139 {name: ubuntu, vmaj: 24, vmin: '10'},
140- {name: sles, vmaj: 15, vmin: 2},
141- {name: sles, vmaj: 15, vmin: 3},
142140 {name: sles, vmaj: 15, vmin: 4},
143- {name: rhel, vmaj: 8, vmin: 6},
141+ {name: sles, vmaj: 15, vmin: 6},
142+ {name: rhel, vmaj: 8, vmin: 10},
144143 {name: windows}
145144 ]
146145 arch : ['']
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ if(POLICY CMP0074)
66 cmake_policy (SET CMP0074 NEW)
77endif ()
88project (level-zero-tests)
9- set (CMAKE_CXX_STANDARD 17)
9+ set (CMAKE_CXX_STANDARD 20)
10+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
1011
1112list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" )
1213
@@ -50,9 +51,9 @@ set(_Boost_LOG_SETUP_DEPENDENCIES log)
5051set (_Boost_LOG_DEPENDENCIES "" )
5152if (BUILD_ZE_PERF_TESTS_ONLY)
5253 # do not require boost when building perf tests only, will skip tests that use boost
53- find_package (Boost 1.65 COMPONENTS log program_options timer chrono system serialization)
54+ find_package (Boost 1.76 COMPONENTS log program_options timer chrono system serialization)
5455else ()
55- find_package (Boost 1.65 REQUIRED COMPONENTS log program_options timer chrono system serialization)
56+ find_package (Boost 1.76 REQUIRED COMPONENTS log program_options timer chrono system serialization)
5657endif ()
5758message (STATUS "Boost_FOUND: ${Boost_FOUND} " )
5859
You can’t perform that action at this time.
0 commit comments