diff --git a/docker/Dockerfile.intel b/docker/Dockerfile.intel index b7d8bbd..4d09d2d 100644 --- a/docker/Dockerfile.intel +++ b/docker/Dockerfile.intel @@ -9,6 +9,7 @@ COPY --from=intel /opt/intel/oneapi /opt/intel/oneapi # Install software from spack_intel.yaml RUN mkdir /opt/spack-environment COPY docker/spack_intel.yaml /opt/spack-environment/spack.yaml +COPY docker/compilers_intel.yaml /root/.spack/linux/compilers.yaml RUN cd /opt/spack-environment \ && spack env activate . \ && spack install --fail-fast \ @@ -32,6 +33,7 @@ RUN cd /opt/spack-environment \ FROM ubuntu:22.04 # Copy necessary files from the builder stage +COPY --from=builder /opt/intel/oneapi /opt/intel/oneapi COPY --from=builder /opt/spack-environment /opt/spack-environment COPY --from=builder /opt/software /opt/software COPY --from=builder /usr /usr diff --git a/docker/compilers_intel.yaml b/docker/compilers_intel.yaml new file mode 100644 index 0000000..d256e6a --- /dev/null +++ b/docker/compilers_intel.yaml @@ -0,0 +1,10 @@ +compilers: +- compiler: + modules: [] + operating_system: ubuntu22.04 + paths: + cc: /opt/intel/oneapi/compiler/2024.0/bin/icx + cxx: /opt/intel/oneapi/compiler/2024.0/bin/icx + f77: /opt/intel/oneapi/compiler/2024.0/bin/ifx + fc: /opt/intel/oneapi/compiler/2024.0/bin/ifx + spec: intel@2024.0 diff --git a/docker/spack_intel.yaml b/docker/spack_intel.yaml index 691b61f..b30721c 100644 --- a/docker/spack_intel.yaml +++ b/docker/spack_intel.yaml @@ -1,7 +1,7 @@ spack: packages: all: - compiler: [intel@2021.11.1] + compiler: [intel@2024.0] specs: - cmake - gmake