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 lack of optimisation for SHAPEIT4 v4.2.0 #12207

Merged

Conversation

verdurin
Copy link
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
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
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
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
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
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
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
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
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
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
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
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