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

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

Merged

Conversation

boegel
Copy link
Member

@boegel boegel commented Aug 14, 2020

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


cuda = get_software_root('CUDA')
if cuda:
basearch = '%s.cuda' % basearch
Copy link
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
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
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
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


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
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
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
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
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