Skip to content

Fix lack of optimisation for SHAPEIT4 v4.2.0#12207

Merged
boegel merged 5 commits intoeasybuilders:developfrom
verdurin:20210219093112_new_pr_SHAPEIT4420
Feb 19, 2021
Merged

Fix lack of optimisation for SHAPEIT4 v4.2.0#12207
boegel merged 5 commits intoeasybuilders:developfrom
verdurin:20210219093112_new_pr_SHAPEIT4420

Conversation

@verdurin
Copy link
Copy Markdown
Member

(created using eb --new-pr)

@verdurin verdurin changed the title Fix lack of optimisation {bio}[foss/2019b,foss/2020a,foss/2020b] SHAPEIT4 v4.2.0 - Fix lack of optimisation Feb 19, 2021
@verdurin
Copy link
Copy Markdown
Member Author

Fixes issue #12204

@verdurin verdurin linked an issue Feb 19, 2021 that may be closed by this pull request
@verdurin verdurin added this to the next release (4.3.3?) milestone Feb 19, 2021
@verdurin
Copy link
Copy Markdown
Member Author

Test report by @verdurin
SUCCESS
Build succeeded for 3 out of 3 (3 easyconfigs in total)
easybuild-c7.novalocal - Linux centos linux 7.9.2009, x86_64, Intel Xeon Processor (Skylake, IBRS), Python 3.6.8
See https://gist.github.com/4460b993847b9c55ad41fc4c75595cad for a full test report.

Micket
Micket previously requested changes Feb 19, 2021

#Best performance is achieved with this. Use it if running on the same plateform you're compiling.
-#CXXFLAG=-O3 -march=native
+CXXFLAG=-O3 -march=native
Copy link
Copy Markdown
Contributor

@Micket Micket Feb 19, 2021

Choose a reason for hiding this comment

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

Shouldn't we rather set it to whatever the CXXFLAGS environment variable is? I.e.

CXXFLAG=${CXXFLAGS}

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.

@Micket would the same apply to LDFLAG?

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.

Sure, probably wouldn't hurt (though it seems the compiler did pick up the library paths anyway via one of the environment variables since it worked).

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.

Yes, I agree, just do this via buildopts:

buildopts = 'CXX="$CXX" CXXFLAG="$CXXFLAGS" LDFLAG="$CXXFLAGS"'

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.

Now done. I had to fix the original toolchainopts, which caused an error after using CXXFLAGS.


#Best performance is achieved with this. Use it if running on the same plateform you're compiling.
-#CXXFLAG=-O3 -march=native
+CXXFLAG=-O3 -march=native
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.

Yes, I agree, just do this via buildopts:

buildopts = 'CXX="$CXX" CXXFLAG="$CXXFLAGS" LDFLAG="$CXXFLAGS"'

@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 19, 2021

Test report by @boegel
SUCCESS
Build succeeded for 3 out of 3 (3 easyconfigs in total)
node3501.doduo.os - Linux RHEL 8.2, x86_64, AMD EPYC 7552 48-Core Processor (zen2), Python 3.6.8
See https://gist.github.com/dc23ee357028460831261e7d413d4c2b for a full test report.

@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 19, 2021

Test report by @boegel
SUCCESS
Build succeeded for 3 out of 3 (3 easyconfigs in total)
node3101.skitty.os - Linux centos linux 7.9.2009, x86_64, Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz, Python 3.6.8
See https://gist.github.com/ca3e8e56e913615c23ca2315c2f8fae6 for a full test report.

@boegel boegel dismissed Micket’s stale review February 19, 2021 18:44

suggested changes made

@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 19, 2021

Going in, thanks @verdurin!

@boegel boegel merged commit 4a37b59 into easybuilders:develop Feb 19, 2021
@boegel boegel changed the title {bio}[foss/2019b,foss/2020a,foss/2020b] SHAPEIT4 v4.2.0 - Fix lack of optimisation Fix lack of optimisation for SHAPEIT4 v4.2.0 Feb 19, 2021
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.

SHAPEIT4 builds are not optimised

3 participants