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

Huge memory usage compiling Kernel with clang. #11542

Closed
martyngigg opened this issue Dec 6, 2014 · 2 comments
Closed

Huge memory usage compiling Kernel with clang. #11542

martyngigg opened this issue Dec 6, 2014 · 2 comments
Assignees
Labels
Framework Issues and pull requests related to components in the Framework

Comments

@martyngigg
Copy link
Member

This issue was originally TRAC 10700

I was having a quick play with the include-what-you-use tool after merging in the changes from http://trac.mantidproject.org/mantid/ticket/10685 locally. It seems that clang requires about ~12Gb of memory to compile Kernel. It looks as if it is the linking step that ramps up the memory usage.

I don't it's anything to do with those changes but something about the code in Kernel. We should find out why.

It's worth noting that when compiling with gcc the linking step seems to take a disproportionate amount of time to the size of the library.

My suspicion is all of the static objects in Atom.cpp but that's just a guess.

@martyngigg
Copy link
Member Author

@martyngigg (2014-12-06T10:07:01):
Pete, I assigned this to you just because you had http://trac.mantidproject.org/mantid/ticket/10685 and I wanted to make sure we didn't forget about it.


@NickDraper (2015-04-27T08:10:34):
Moved to R3.5 at the R3.4 code freeze

@martyngigg martyngigg added the Framework Issues and pull requests related to components in the Framework label Jun 3, 2015
@martyngigg martyngigg added this to the Release 3.5 milestone Jun 3, 2015
@NickDraper NickDraper modified the milestones: Release 3.5, Release 3.6 Sep 14, 2015
@NickDraper NickDraper modified the milestones: Release 3.6, Release 3.7 Jan 22, 2016
@NickDraper NickDraper modified the milestones: Release 3.7, Release 3.8 May 20, 2016
@NickDraper NickDraper modified the milestones: Release 3.8, Release 3.9 Oct 3, 2016
@NickDraper NickDraper modified the milestones: Release 3.9, Temporary Holding Oct 14, 2016
@NickDraper NickDraper removed this from the Temporary Holding milestone Oct 3, 2017
@DavidFair
Copy link
Contributor

Just done a quick test with my copy of clang 8 locally, compiling Kernel used < 2gb memory so I suspect it was a compiler bug rather than a code-gen issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues and pull requests related to components in the Framework
Projects
None yet
Development

No branches or pull requests

4 participants