Skip to content

ENH: Support for WRF >= 3.7#902

Merged
boegel merged 4 commits intoeasybuilders:developfrom
andreas-h:wrf_38
Apr 29, 2016
Merged

ENH: Support for WRF >= 3.7#902
boegel merged 4 commits intoeasybuilders:developfrom
andreas-h:wrf_38

Conversation

@andreas-h
Copy link
Copy Markdown
Contributor

WRF changed its configure script in version 3.7. This PR checks for WRF version and handles both cases (version <= 3.6 and version >= 3.7)

@hpcugentbot
Copy link
Copy Markdown

Automatic reply from Jenkins: Can I test this?

@boegel
Copy link
Copy Markdown
Member

boegel commented Apr 26, 2016

Jenkins: ok to test

@boegel boegel added this to the v2.8.0 milestone Apr 26, 2016
@hpcugentbot
Copy link
Copy Markdown

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1933/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

Comment thread easybuild/easyblocks/w/wrf.py Outdated
if self.comp_fam == toolchain.INTELCOMP: #@UndefinedVariable
build_type_option = "Linux x86_64 i486 i586 i686, ifort compiler with icc"
build_type_option = ("INTEL\ \(ifort\/icc\)" if LooseVersion(self.version) >= LooseVersion('3.7')
else "Linux x86_64 i486 i586 i686, ifort compiler with icc")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andreas-h I would reformat this to this, for readability:

if LooseVersion(self.version) >= LooseVersion('3.7'):
    build_type_option = "INTEL\ \(ifort\/icc\)"
else:
    build_type_option = "Linux x86_64 i486 i586 i686, ifort compiler with icc"

same below

@boegel
Copy link
Copy Markdown
Member

boegel commented Apr 26, 2016

@andreas-h this looks very good, thanks a lot for looking into this!

Do you have an updated easyconfig file as well, that can be used as a testcase for this change?

@andreas-h
Copy link
Copy Markdown
Contributor Author

@boegel I have an easyconfig file which I suppose is correct, but it currently does not build successfully on my system. But I guess this isn't easybuild related, as I also have trouble building directly (i.e., without EasyBuild).

I uploaded the easyconfig file I'm using here: https://gist.github.com/andreas-h/de2af52d1348a00b308997717986655d but not all dependencies are in the easybuild-easyconfigs repo yet, I guess.

I uploaded the build output showing my problems here: https://gist.github.com/andreas-h/c9ec2df5dea7a0ac18bed2e3643ad2e7 but I guess that's is off-topic for this issue ;)

@hpcugentbot
Copy link
Copy Markdown

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1936/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@boegel
Copy link
Copy Markdown
Member

boegel commented Apr 27, 2016

@andreas-h that log doesn't correspond to the foss easyconfig you showed?

The problem in the log is that gcc is being combined with these $CFLAGS, which are for the Intel compilers:

== 2016-04-26 17:42:10,258 environment.py:97 INFO Environment variable CFLAGS set to -O2 -xHost -ftz -fp-speculation=safe -fp-model source

@boegel
Copy link
Copy Markdown
Member

boegel commented Apr 27, 2016

@andreas-h ah, sorry, you have both easyconfigs in your gist... are you hitting similar problems when using foss?

@boegel
Copy link
Copy Markdown
Member

boegel commented Apr 27, 2016

@andreas-h one extra change is required for recent versions of WRF, cfr. andreas-h#1

nup.exe was 'temporarily removed' in WRF 3.7
@hpcugentbot
Copy link
Copy Markdown

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1937/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@boegel
Copy link
Copy Markdown
Member

boegel commented Apr 27, 2016

@andreas-h I opened a PR with an easyconfig for WRF 3.8, see easybuilders/easybuild-easyconfigs#2963

Works for me using your updated easyblock, thanks!

@boegel
Copy link
Copy Markdown
Member

boegel commented Apr 29, 2016

tested with both existing WRF easyconfigs, and the one in easybuilders/easybuild-easyconfigs#2963, so good to go

Thanks @andreas-h!

@boegel boegel merged commit 86374cc into easybuilders:develop Apr 29, 2016
@andreas-h andreas-h deleted the wrf_38 branch June 9, 2017 22:26
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