Skip to content

Commit 0c1931a

Browse files
committed
[docker] change CC to clang
1 parent 2f45f42 commit 0c1931a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:22.04
1+
FROM ubuntu:24.04
22

33
ENV DEBIAN_FRONTEND=noninteractive
44

@@ -18,19 +18,26 @@ RUN apt-get update && apt-get install -y \
1818
flex \
1919
bison \
2020
ca-certificates \
21+
clang \
22+
libomp-dev \
2123
&& rm -rf /var/lib/apt/lists/*
2224

2325
WORKDIR /workspace
2426

2527
# Invalidate old cache if needed
2628
ADD https://api.github.com/repos/FUnTiDES-sim/FUnTiDES-TPL/commits/main /tmp/latest_commit
2729

30+
# set gcc 13 as build tool
31+
# 10/03/2026: gcc-14 is too new for current pykokkos-base.
32+
ENV CC=clang
33+
ENV CXX=clang++
34+
2835
# Clone TPL repo
2936
RUN git clone --recurse-submodules https://github.com/FUnTiDES-sim/FUnTiDES-TPL.git tpl_source
3037

3138
# Install TPL
3239
WORKDIR /workspace/tpl_source
33-
RUN ./install.sh --prefix=/opt/tpl --disable-cuda --use-venv --jobs=$(nproc)
40+
RUN CC=clang CXX=clang++ ./install.sh --prefix=/opt/tpl --disable-cuda --use-venv --jobs=$(nproc)
3441

3542
ENV PATH="/opt/tpl/bin:${PATH}"
3643
ENV LD_LIBRARY_PATH="/opt/tpl/lib"

0 commit comments

Comments
 (0)