Skip to content

Workaround for oneAPI internal compiler error #25

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

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

manodeep
Copy link

Fixes the ICE for latest (?) oneAPI compilers. The applied fix worked for the latest version on gadi oneAPI/2024.2.1

Do not merge yet - need to confirm that the fix works for oneAPI 2025

@manodeep
Copy link
Author

@harshula You might already be setup to check whether this branch builds with oneAPI 2025 using spack.

(I have to fix the configure error with oneAPI first before I can get to the building stage)

@harshula
Copy link

Hi @manodeep ,

==> Waiting for oasis3-mct-git.oneapi_ice_workaround=access-om2-d3tkr34podgo4kd5==> Installing oasis3-mct-git.oneapi_ice_workaround=access-om2-d3tkr34podgo4kd5vlaqotalp3vpbrgq [26/30]
==> No binary for oasis3-mct-git.oneapi_ice_workaround=access-om2-d3tkr34podgo4kd5vlaqotalp3vpbrgq found: installing from source
==> No patches needed for oasis3-mct
==> oasis3-mct: Executing phase: 'edit'
==> oasis3-mct: Executing phase: 'build'
==> oasis3-mct: Executing phase: 'install'
==> oasis3-mct: Successfully installed oasis3-mct-git.oneapi_ice_workaround=access-om2-d3tkr34podgo4kd5vlaqotalp3vpbrgq
  Stage: 2.49s.  Edit: 0.00s.  Build: 1m 41.56s.  Install: 0.03s.  Post-install: 0.17s.  Total: 1m 44.41s

Using:

diff --git a/spack.yaml b/spack.yaml
index 9789b63..dc95559 100644
--- a/spack.yaml
+++ b/spack.yaml
@@ -20,7 +20,7 @@ spack:
         - '@git.2023.10.26=access-om2'
     oasis3-mct:
       require:
-        - '@git.2023.11.09=access-om2'
+        - '@git.oneapi_ice_workaround=access-om2'
     netcdf-c:
       require:
         - '@4.7.4'
@@ -32,10 +32,13 @@ spack:
         - '@2.5.2'
     openmpi:
       require:
-        - '@4.0.2'
+        - '@4.1.5'
+    gcc-runtime:
+      require:
+        - '%[email protected]'
     all:
       require:
-        - '%[email protected]'
+        - '%[email protected]'
         - 'target=x86_64'
   view: true
   concretizer:

@manodeep
Copy link
Author

Fantastic! Thanks @harshula.

@manodeep manodeep merged commit defda0e into master Feb 28, 2025
4 checks passed
@manodeep
Copy link
Author

Thanks @micaeljtoliveira

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants