Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu: add flang #62

Merged
merged 2 commits into from
Feb 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,31 @@
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
make git g++ gfortran ccache vim clang llvm wget sudo curl ninja-build clang-format zstd libhwloc-dev libomp-dev gnupg2 cmake libgtest-dev clang-tidy && \
ccache clang clang-format clang-tidy cmake curl g++ gfortran git gnupg2 libgtest-dev libhwloc-dev libomp-dev llvm make ninja-build sudo vim wget zstd && \
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just alphabetic ordering.

if [ "$(uname -m)" = "x86_64" ]; then \
apt-get install -y gcc-multilib g++-multilib gfortran-multilib; \
fi && \
apt-get purge --autoremove -y && \
rm -rf /var/lib/apt/lists/*

# intel build happens on 22.04 LTS, which does not have flang, install flang unconditionally once intel gets bumped
RUN if [ "${INTEL}" = "yes" ]; then \
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null && \
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list && \
apt-get update && \
apt-get install -y intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic intel-oneapi-mkl-devel && \
apt-get clean; \
else \
apt-get update && \
apt-get install -y flang && \
apt-get purge --autoremove -y && \
apt-get clean; \
fi

RUN useradd -m -G sudo -u 1001 kokkos
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER kokkos
ENV PATH=${INTEL:+/opt/intel/oneapi/compiler/latest/linux/bin:/opt/intel/oneapi/compiler/latest/linux/bin/intel64}${PATH:+:}${PATH}
ENV LD_LIBRARY_PATH=${INTEL:+/opt/intel/oneapi/compiler/latest/linux/compiler/lib/intel64:/opt/intel/oneapi/mkl/latest/lib/intel64}${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}

Check warning on line 35 in ubuntu

View workflow job for this annotation

GitHub Actions / CI (ubuntu, latest-amd64)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LD_LIBRARY_PATH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 35 in ubuntu

View workflow job for this annotation

GitHub Actions / CI (ubuntu, latest-arm64, true)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LD_LIBRARY_PATH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 35 in ubuntu

View workflow job for this annotation

GitHub Actions / CI (ubuntu, latest-arm64, true)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LD_LIBRARY_PATH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 35 in ubuntu

View workflow job for this annotation

GitHub Actions / CI (ubuntu, rolling, TAG=rolling)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LD_LIBRARY_PATH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 35 in ubuntu

View workflow job for this annotation

GitHub Actions / CI (ubuntu, rolling, TAG=rolling)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LD_LIBRARY_PATH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 35 in ubuntu

View workflow job for this annotation

GitHub Actions / CI (ubuntu, devel, TAG=devel, true)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LD_LIBRARY_PATH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 35 in ubuntu

View workflow job for this annotation

GitHub Actions / CI (ubuntu, intel, TAG=22.04,INTEL=yes, -DCMAKE_CXX_COMPILER=icpx -DCMAKE_CXX_FLAGS=-fp-model=pre...

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LD_LIBRARY_PATH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
ENV CCACHE_MAXSIZE=250M
WORKDIR /home/kokkos
Loading