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

update custom easyblock for NAMD for version >= 3.0 #3248

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

tanmoy1989
Copy link
Contributor

@tanmoy1989 tanmoy1989 commented Mar 4, 2024

(created using eb --new-pr)

This PR is to make sure that NMAD/3.0b6 version through this new EB file gets installed without an error. There were primary two errors I was encountering: (1) one is for to bypass the patch stuffs ([here] and [here]) from version NAMD/2.14 which don’t apply anymore to NAMD/3.0b6 version and (2) the other one was related to charm; where upon extraction the source code of NAMD/3.0b6, it was creating a directory called charm-v7.0.0 instead of charm-7.0.0 that was essentially throwing errors and preventing the installation NAMD/3.0b6). These two issues were fixed through this modified namd.py script.

@@ -141,6 +143,9 @@ def configure_step(self):
'parallel': self.cfg['parallel'],
}
charm_subdir = '.'.join(os.path.basename(self.charm_tarballs[0]).split('.')[:-1])
# From version 3.0 naming schema changed
if LooseVersion(self.version) >= LooseVersion('3.0'):
charm_subdir = charm_subdir.replace("7.0.0", "v7.0.0")
Copy link
Contributor

Choose a reason for hiding this comment

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

Hardcoding this to 7.0.0 seems like it's begging to break on the very next release.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, I am not sure what would be an alternative way out. This just resolved the issue and we were able to successfully install the latest NAMD version with charm (the issue was with charm though). I am happy to make any further changes to the code.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like the non-beta release (Version 3.0 (2024-06-14) Platforms) on https://www.ks.uiuc.edu/Development/Download/download.cgi is now having charm-8.0.0.tar, and inside that tar, the folder name is now back to charm-8.0.0 (i.e. no "v"). So there might be no need for this easyblock patch if you're compiling the non-beta release.

easybuild/easyblocks/n/namd.py Show resolved Hide resolved
easybuild/easyblocks/n/namd.py Outdated Show resolved Hide resolved
Just modified a trailing whitespace suggested by the hound
Blank line was deleted suggested by the hound
Fixing a whitespace
@boegel boegel added update and removed enhancement labels Mar 13, 2024
@boegel boegel added this to the 4.x milestone Mar 13, 2024
Made a small at line 148 (added "-", "-v") as suggested by the reviewer.
@emdrago
Copy link

emdrago commented Jun 6, 2024

Test report by @emdrago

Overview of tested easyconfigs (in order)

Build succeeded for 0 out of 1 (1 easyconfigs in total)
compt313 - Linux RHEL 8.7 (Ootpa), x86_64, Intel(R) Xeon(R) Gold 6230 CPU @ 2.10GHz, Python 3.9.18
See https://gist.github.com/emdrago/05ef6fb7bb8ec808341dbfc5ecbc019a for a full test report.

@boegel boegel changed the title Update namd.py to run successfully NAMD-3.0b6-foss-2023a-mpi.eb update custom easyblock for NAMD for version >= 3.0 Jul 31, 2024
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.

5 participants