Skip to content

fix default value for custom 'namd_basearch' easyconfig parameter in NAMD easyblock#2123

Merged
migueldiascosta merged 4 commits intoeasybuilders:developfrom
boegel:20200814214423_new_pr_ePRJngbAzj
Aug 24, 2020
Merged

fix default value for custom 'namd_basearch' easyconfig parameter in NAMD easyblock#2123
migueldiascosta merged 4 commits intoeasybuilders:developfrom
boegel:20200814214423_new_pr_ePRJngbAzj

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Aug 14, 2020

(created using eb --new-pr)
fix for issue raised by @migueldiascosta in #2113

@boegel boegel requested a review from migueldiascosta August 14, 2020 20:12
Comment thread easybuild/easyblocks/n/namd.py Outdated

cuda = get_software_root('CUDA')
if cuda:
basearch = '%s.cuda' % basearch
Copy link
Copy Markdown
Member Author

@boegel boegel Aug 14, 2020

Choose a reason for hiding this comment

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

This breaks the installation of NAMD-2.14-fosscuda-2019b.eb that was added by @edmondac in #2113, but I wonder how it ever worked since calling get_software_root('CUDA') in extra_options() doesn't make sense...

To be revisited.

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.

Fails with:

ERROR: Build of /tmp/eb-zuwacrgi/files_pr11090/n/NAMD/NAMD-2.14-fosscuda-2019b.eb failed
(err: "build failed (first 300 chars): Failed to patch arch/Linux-x86_64.cuda.tcl:
[Errno 2] No such file or directory: 'arch/Linux-x86_64.cuda.tcl' -> 'arch/Linux-x86_64.cuda.tcl.orig.eb'")

Copy link
Copy Markdown
Member

@migueldiascosta migueldiascosta left a comment

Choose a reason for hiding this comment

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

lgtm regarding restoring the namd_basearch easyconfig parameter

but merging this will actually break the fosscuda easyconfig (as opposed to cuda being ignored in the basearch), how shall we proceed?

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Aug 23, 2020

@migueldiascosta Should be fixed now, it simply doesn't make sense to add .cuda to the value for namd_basearch, which is also why it worked before.

Tested with both easyconfigs from easybuilders/easybuild-easyconfigs#11090, as well as the ones in easybuilders/easybuild-easyconfigs#11114

Comment thread easybuild/easyblocks/n/namd.py Outdated

if self.cfg['namd_basearch'] is None:

self.log.info("namd_basearch not specified, so determining it based a CPU arch & CUDA dep...")
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.

I guess mentioning the CUDA dep here is misleading then

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.

fixed in 32b61e8

Copy link
Copy Markdown
Member

@migueldiascosta migueldiascosta left a comment

Choose a reason for hiding this comment

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

lgtm

@migueldiascosta
Copy link
Copy Markdown
Member

Going in, thanks @boegel!

@migueldiascosta migueldiascosta merged commit 67f0148 into easybuilders:develop Aug 24, 2020
@boegel boegel deleted the 20200814214423_new_pr_ePRJngbAzj branch August 24, 2020 16:22
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