Skip to content

Commit

Permalink
Use simpler syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Feb 3, 2025
1 parent 28b57f7 commit 344ce2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fedora
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fi
RUN useradd -m -G wheel -u 1001 kokkos
RUN echo '%wheel 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}}
ENV PATH=${INTEL:+/opt/intel/oneapi/compiler/latest/linux/bin:/opt/intel/oneapi/compiler/latest/linux/bin/intel64}:${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:-}

Check warning on line 28 in fedora

View workflow job for this annotation

GitHub Actions / CI (fedora, latest)

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 28 in fedora

View workflow job for this annotation

GitHub Actions / CI (fedora, rawhide, TAG=rawhide, 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/
ENV CCACHE_MAXSIZE=250M
WORKDIR /home/kokkos
4 changes: 2 additions & 2 deletions ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ 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}}
ENV PATH=${INTEL:+/opt/intel/oneapi/compiler/latest/linux/bin:/opt/intel/oneapi/compiler/latest/linux/bin/intel64}:${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:-}

Check warning on line 26 in ubuntu

View workflow job for this annotation

GitHub Actions / CI (ubuntu, latest)

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 26 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 26 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 26 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

0 comments on commit 344ce2a

Please sign in to comment.