Skip to content

Commit

Permalink
Pass compilers.yaml file for intel build
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Oct 30, 2024
1 parent f1d2a8d commit d18fa46
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker/Dockerfile.intel
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down
10 changes: 10 additions & 0 deletions docker/compilers_intel.yaml
Original file line number Diff line number Diff line change
@@ -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: [email protected]
2 changes: 1 addition & 1 deletion docker/spack_intel.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
spack:
packages:
all:
compiler: [intel@2021.11.1]
compiler: [intel@2024.0]
specs:
- cmake
- gmake
Expand Down

0 comments on commit d18fa46

Please sign in to comment.