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

Feature/40 build wrf container #72

Merged
merged 16 commits into from
Dec 6, 2024
Merged

Conversation

hahnd
Copy link
Contributor

@hahnd hahnd commented Dec 6, 2024

Pull Request Testing

  • Describe testing already performed for these changes:

  • Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:

  • Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes or No]

  • Do these changes include sufficient testing updates? [Yes or No]

  • Will this PR result in changes to the test suite? [Yes or No]

    If yes, describe the new output and/or changes to the existing output:

  • Please complete this pull request review by [Fill in date].

Pull Request Checklist

  • Review the source issue metadata (required labels, projects, and milestone).
  • Complete the PR definition above.
  • Ensure the PR title matches the feature or bugfix branch name.
  • Define the PR metadata, as permissions allow.
    Select: Reviewer(s)
    Select: Organization level software support Project or Repository level development cycle Project
    Select: Milestone as the version that will include these changes
  • After submitting the PR, select Development issue with the original issue number.
  • After the PR is approved, merge your changes. If permissions do not allow this, request that the reviewer do the merge.
  • Close the linked issue and delete your feature or bugfix branch from GitHub.

hahnd added 15 commits July 21, 2023 16:42
…, we copy over compiled libaries and applications, and only install the intel runtime packages so that we can redistribute the code (i.e., omits Intel compilers). Size is also down considerably from 8 GB to 3 GB.
…ith icx.

ungrib still does not compile without code modifications:

mpicc -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -D_UNGRIB -w -c cio.c
cio.c:52:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
c_open(unit, nunit, name, mode, err, oflag)
^
int
cio.c:24:16: note: expanded from macro 'c_open'
#define c_open c_open_
               ^
cio.c:117:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
bn_seek(fd, bread, mode, iprint)
^
int
cio.c:27:17: note: expanded from macro 'bn_seek'
#define bn_seek bn_seek_
                ^
cio.c:155:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
bn_read(fd, buf, nbuf, bread, ios, idiag)
^
int
cio.c:26:17: note: expanded from macro 'bn_read'
#define bn_read bn_read_
                ^
cio.c:201:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
bnwrit_(fd, buf, nbuf, bwritten, err, idiag)
^
int
cio.c:235:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
c_close(nunit, iprint, err)
^
int
cio.c:25:17: note: expanded from macro 'c_close'
#define c_close c_close_
                ^
5 errors generated.
make[1]: [Makefile:96: cio.o] Error 1 (ignored)
…ow ISO C99 syntax rules to allow base compilation with icx with no flags disabling warnings/errors.

Updated the build_wrf.sh script to include functions to check the build status of each component and exit if something fails.
… we created.

Changing files to be owned by root for apptainer purposes.
WRF needs to run the compile step twice to build everything successfully.
@hahnd hahnd added component: Docker Docker container issues component: documentation Documentation issues labels Dec 6, 2024
@hahnd hahnd requested a review from georgemccabe December 6, 2024 18:21
@georgemccabe georgemccabe linked an issue Dec 6, 2024 that may be closed by this pull request
47 tasks
@georgemccabe georgemccabe merged commit d6a1f4c into main Dec 6, 2024
3 checks passed
@georgemccabe georgemccabe deleted the feature/40-build-wrf-container branch December 6, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Docker Docker container issues component: documentation Documentation issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build/run WRF in container using intel compiler
2 participants