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 3
3
ARG VMAJ
4
4
ARG VMIN
5
5
FROM 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}
6
6
7
7
SHELL ["/bin/bash" , "-e" , "-c" ]
8
8
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
+
9
29
# Static libraries for boost are not part of the SLES distribution
10
30
RUN <<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
12
32
cd boost
13
33
./bootstrap.sh
14
34
./b2 install \
@@ -19,7 +39,8 @@ cd boost
19
39
--with-program_options \
20
40
--with-serialization \
21
41
--with-system \
42
+ --with-date_time \
22
43
--with-timer
23
44
cd ..
24
45
rm -rf boost
25
- EOF
46
+ EOF
Original file line number Diff line number Diff line change @@ -4,32 +4,23 @@ ARG VMAJ
4
4
ARG VMIN
5
5
FROM ghcr.io/oneapi-src/level-zero-linux-compute/ubuntu:${VMAJ}.${VMIN}
6
6
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 ../.. && `
90
90
rm -rf OpenCL-ICD-Loader-2024.10.24"
91
91
92
92
RUN "`
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 && `
96
96
MSYS_NO_PATHCONV=1 cmd /c bootstrap.bat && `
97
97
./b2.exe install -j 16 address-model=64 `
98
98
--with-chrono `
99
99
--with-log `
100
100
--with-program_options `
101
101
--with-serialization `
102
102
--with-system `
103
+ --with-date_time `
103
104
--with-timer && `
104
105
cd .. && `
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:
137
137
{name: ubuntu, vmaj: 22, vmin: '04'},
138
138
{name: ubuntu, vmaj: 24, vmin: '04'},
139
139
{name: ubuntu, vmaj: 24, vmin: '10'},
140
- {name: sles, vmaj: 15, vmin: 2},
141
- {name: sles, vmaj: 15, vmin: 3},
142
140
{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},
144
143
{name: windows}
145
144
]
146
145
arch : ['']
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ if(POLICY CMP0074)
6
6
cmake_policy (SET CMP0074 NEW )
7
7
endif ()
8
8
project (level-zero-tests )
9
- set (CMAKE_CXX_STANDARD 17 )
9
+ set (CMAKE_CXX_STANDARD 20 )
10
+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
10
11
11
12
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" )
12
13
@@ -50,9 +51,9 @@ set(_Boost_LOG_SETUP_DEPENDENCIES log)
50
51
set (_Boost_LOG_DEPENDENCIES "" )
51
52
if (BUILD_ZE_PERF_TESTS_ONLY )
52
53
# 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 )
54
55
else ()
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 )
56
57
endif ()
57
58
message (STATUS "Boost_FOUND: ${Boost_FOUND} " )
58
59
You can’t perform that action at this time.
0 commit comments