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

Added +restart_repro variant #67

Merged
merged 1 commit into from
Mar 20, 2024
Merged

Added +restart_repro variant #67

merged 1 commit into from
Mar 20, 2024

Conversation

aidanheerdegen
Copy link
Member

We need a reproducibility variant for mom5 for repro CI testing

See ACCESS-NRI/access-om2-configs#11 for context.

@access-hive-bot
Copy link

This pull request has been mentioned on ACCESS Hive Community Forum. There might be relevant details there:

https://forum.access-hive.org.au/t/how-to-build-access-om2-on-gadi/1545/13

@aidanheerdegen aidanheerdegen marked this pull request as draft February 22, 2024 06:44
@harshula
Copy link
Collaborator

Can you use the same pattern that is used for optimisation_report variant? e.g.

            if "+repro" in self.spec:
                build.add_default_env("REPRO", "true")

@aidanheerdegen
Copy link
Member Author

Made suggested fix. Worked!

$ spack install access-om2 mom5+restart_repro ^[email protected] ^[email protected]  ^[email protected] %[email protected] 
[+] /g/data/tm70/aph502/spack-build/release/linux-rocky8-x86_64/intel-19.0.5.281/datetime-fortran-1.7.0-aretozixwsdz42owabgzeiuxooyxrspg
[+] /g/data/tm70/aph502/spack-build/release/linux-rocky8-x86_64/intel-19.0.5.281/json-fortran-8.3.0-nyxvikkez6fu64xtbeqqz2a4wngikfgi
==> [email protected] : has external module in ['openmpi/4.0.2']
[+] /apps/openmpi/4.0.2 (external openmpi-4.0.2-4jwtg3nt7p3zsod4rvn3i3jyyop3arpe)
[+] /g/data/tm70/aph502/spack-build/release/linux-rocky8-x86_64/intel-19.0.5.281/pkgconf-1.9.5-uyq7tvpnuuo3gosnplkvuxktaeeipuqk
[+] /g/data/tm70/aph502/spack-build/release/linux-rocky8-x86_64/intel-19.0.5.281/zlib-1.2.13-arj4bfz33zf63gvfionhorrrveci6kb4
[+] /g/data/tm70/aph502/spack-build/release/linux-rocky8-x86_64/intel-19.0.5.281/hdf5-1.14.1-2-a6mpuk7tw5e4pyukxwalooc7jfldalcf
[+] /g/data/tm70/aph502/spack-build/release/linux-rocky8-x86_64/intel-19.0.5.281/netcdf-c-4.7.4-i3inxzaihefr3rqljoovhyevwai6bsff
[+] /g/data/tm70/aph502/spack-build/release/linux-rocky8-x86_64/intel-19.0.5.281/netcdf-fortran-4.5.2-mnx4gghyb5gngsl3fgosud6k72yu2u6a
[+] /g/data/tm70/aph502/spack-build/release/linux-rocky8-x86_64/intel-19.0.5.281/parallelio-2.5.2-nwolfzy2xxb4wub65gmvlm3edhuolmlh
[+] /g/data/tm70/aph502/spack-build/release/linux-rocky8-x86_64/intel-19.0.5.281/oasis3-mct-master-kv5jbt5qltp2kymqka5joksqbatdzspp
[+] /g/data/tm70/aph502/spack-build/release/linux-rocky8-x86_64/intel-19.0.5.281/libaccessom2-master-ajlvl3kyjim4eccn3onqvfp2dvjgyupv
[+] /g/data/tm70/aph502/spack-build/release/linux-rocky8-x86_64/intel-19.0.5.281/mom5-master-uznvr36p3km4qmjvdrxin7nhfyjubmd3
==> Installing mom5-master-4q2un3c6if5hynashormlklggv55bng5
==> No binary for mom5-master-4q2un3c6if5hynashormlklggv55bng5 found: installing from source
==> No patches needed for mom5
==> mom5: Executing phase: 'edit'
==> mom5: Executing phase: 'build'
==> mom5: Executing phase: 'install'
==> Warning: Module file /g/data/tm70/aph502/spack-build/release/modules/linux-rocky8-x86_64/mom5/master exists and will not be overwritten
==> mom5: Successfully installed mom5-master-4q2un3c6if5hynashormlklggv55bng5
  Stage: 7.65s.  Edit: 0.07s.  Build: 4m 46.93s.  Install: 0.26s.  Post-install: 0.64s.  Total: 5m 3.20s
[+] /g/data/tm70/aph502/spack-build/release/linux-rocky8-x86_64/intel-19.0.5.281/mom5-master-4q2un3c6if5hynashormlklggv55bng5
[+] /g/data/tm70/aph502/spack-build/release/linux-rocky8-x86_64/intel-19.0.5.281/cice5-master-7ta7toa4fohxrh6ufgantpuobxco4a7c
[+] /g/data/tm70/aph502/spack-build/release/linux-rocky8-x86_64/intel-19.0.5.281/access-om2-latest-lvqgjiupra23pxznruwrbris6pmidcx3

@aidanheerdegen aidanheerdegen changed the title Added +repro variant Added +restart_repro variant Mar 15, 2024
@harshula harshula marked this pull request as ready for review March 19, 2024 22:59
@harshula harshula self-requested a review March 19, 2024 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants