Skip to content

{chem}[foss/2018b,intel/2018b] SALMON v1.2.1#8478

Merged
boegel merged 2 commits intoeasybuilders:developfrom
migueldiascosta:20190612153019_new_pr_SALMON121
Jul 5, 2019
Merged

{chem}[foss/2018b,intel/2018b] SALMON v1.2.1#8478
boegel merged 2 commits intoeasybuilders:developfrom
migueldiascosta:20190612153019_new_pr_SALMON121

Conversation

@migueldiascosta
Copy link
Copy Markdown
Member

@migueldiascosta migueldiascosta commented Jun 12, 2019

(created using eb --new-pr)

requires easybuilders/easybuild-easyblocks#1750

@migueldiascosta migueldiascosta changed the title {chem}[intel/2018b] SALMON v1.2.1 {chem}[foss/2018b,intel/2018b] SALMON v1.2.1 Jun 12, 2019
@migueldiascosta
Copy link
Copy Markdown
Member Author

Test report by @migueldiascosta
SUCCESS
Build succeeded for 2 out of 2 (2 easyconfigs in this PR)
sms - Linux centos linux 7.6.1810, AMD EPYC 7601 32-Core Processor, Python 2.7.5
See https://gist.github.com/6725adb09f9409d7dfaba90708c1ae50 for a full test report.

separate_build_dir = True

configure_cmd = "python ../SALMON-v.%(version)s/configure.py"
configopts = "FC='$MPIF90' CC='$MPICC' FFLAGS='$FFLAGS' CFLAGS='$CFLAGS' "
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.

Wait, this doesn't make sense... If you use single quotes around $CFLAGS & co, they won't get expanded by the shell (it'll be a literal '$CFLAGS' value).

So, why does this work?! :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

you're right... but this are arguments to the configure.py script, which then does:

define = ''
for k,v in dict.items():
  define = '{0} -D {1}={2}'.format(define, k, v)

env = ''
for var in args:
  (k, v) = var.split('=', 1)
  env = '{0} {1}="{2}"'.format(env, k, v)

### configuration                                                                                                  
comm = '{2} cmake {0} {1}'.format(define, SOURCE_DIR, env)
print('    $ %s' % comm)
os.system(comm)

so in this case I suppose it's actually better that it is not expanded here, only in the cmake command executed by the configure.py script (?)

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.

Ah, that explains it... Thanks for the clarification! (also, ugh...)

@boegel
Copy link
Copy Markdown
Member

boegel commented Jul 4, 2019

Test report by @boegel
SUCCESS
Build succeeded for 2 out of 2 (2 easyconfigs in this PR)
node3102.skitty.os - Linux centos linux 7.6.1810, Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz, Python 2.7.5
See https://gist.github.com/e17be8da77d3e7932b23633314cde419 for a full test report.

@boegel
Copy link
Copy Markdown
Member

boegel commented Jul 4, 2019

Test report by @boegel
SUCCESS
Build succeeded for 2 out of 2 (2 easyconfigs in this PR)
node2045.delcatty.os - Linux centos linux 7.6.1810, Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz, Python 2.7.5
See https://gist.github.com/5c69f23a86d90a02aab9e7def0bef3a0 for a full test report.

@boegel
Copy link
Copy Markdown
Member

boegel commented Jul 5, 2019

Test report by @boegel
SUCCESS
Build succeeded for 2 out of 2 (2 easyconfigs in this PR)
node2601.swalot.os - Linux centos linux 7.6.1810, Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz, Python 2.7.5
See https://gist.github.com/2098883eab6e654cf4510b38c7412ce1 for a full test report.

@boegel
Copy link
Copy Markdown
Member

boegel commented Jul 5, 2019

Verified that correct compiler & options are being used by checking log after adding buildopts = 'V=1 VERBOSE=1' to the easyconfig, so good to go...

@boegel
Copy link
Copy Markdown
Member

boegel commented Jul 5, 2019

Going in, thanks @migueldiascosta!

@boegel boegel merged commit 4d9601e into easybuilders:develop Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants