Skip to content

IMPROVE PGI siterc so it allows -pthread switch#1494

Merged
boegel merged 3 commits intoeasybuilders:developfrom
MisterFruits:develop
Sep 11, 2018
Merged

IMPROVE PGI siterc so it allows -pthread switch#1494
boegel merged 3 commits intoeasybuilders:developfrom
MisterFruits:develop

Conversation

@MisterFruits
Copy link
Copy Markdown
Contributor

fix #1493

@MisterFruits MisterFruits changed the title IMPROVE PGI siterc so it allow -pthread switch IMPROVE PGI siterc so it allows -pthread switch Aug 31, 2018
@damianam
Copy link
Copy Markdown
Member

We have something similar in our setup, but it does this:

switch -pthread is replace(-lpthread) positional(linker);

Looks to me like a bit better, since it will replace it just when linking.

@boegel boegel added this to the 3.7.0 milestone Sep 1, 2018
@boegel
Copy link
Copy Markdown
Member

boegel commented Sep 1, 2018

@MisterFruits Thoughts on @damianam's suggestion? Looks cleaner to me too...

@MisterFruits
Copy link
Copy Markdown
Contributor Author

I have to say that I'm not a PGI expert ;) eventually looks cleaner yes ! I'll update the PR but I won't be able to test

Comment thread easybuild/easyblocks/p/pgi.py Outdated
# contents for siterc file to make PGI accept the -pthread switch
# cf. https://www.pgroup.com/userforum/viewtopic.php?t=5253&sid=93356f
SITERC_PTHREAD_SWITCH = """
# allow -pthread switch stands for -lpthread
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think "replace unknown switch -pthread with -lpthread" is a clearer comment.

Comment thread easybuild/easyblocks/p/pgi.py Outdated
self.log.info("Appended instructions to pick up $LIBRARY_PATH to siterc file at %s: %s",
siterc_path, SITERC_LIBRARY_PATH)
write_file(siterc_path, SITERC_PTHREAD_SWITCH, append=True)
self.log.info("Appended instructions to allow -pthread switch to siterc file at %s: %s",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

And "Append instructions to replace -pthread with -lpthread to siterc file at ..." feels better to me.

@akesandgren
Copy link
Copy Markdown
Contributor

Have tested with and without this change, result with change is excellent.

Copy link
Copy Markdown
Contributor

@akesandgren akesandgren left a comment

Choose a reason for hiding this comment

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

LGTM

@boegel
Copy link
Copy Markdown
Member

boegel commented Sep 11, 2018

Thanks @MisterFruits!

@boegel boegel merged commit 1719673 into easybuilders:develop Sep 11, 2018
@akesandgren
Copy link
Copy Markdown
Contributor

Going in, thanks @MisterFruits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants