-
Notifications
You must be signed in to change notification settings - Fork 14
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
Static linking for cray xc30 #9
Comments
Thanks! The issue I had due to using dynamic linking is resolved by using the new "static" linking option. However, linking the executable hybmat failed. This seems to be related to my installation of the boost libraries, which I need to compile with the cray compiler. I will consult the support of the machine, since I couldn't figure how to use the cray compiler to compile boost on that machine. |
Thank you for your efforts! @galexv |
Regarding the speed of the compiler, do you have the same problem in building ALPSCore? |
Yes, building ALPSCore also takes a long time. I contacted the support of the Cray machine, because besides the issue with the Cray compiler, there were also issues with the available Intel and GCC compilers which I didn't have on other machines before. I will report any information I get to get the code running. Probably they also have an idea about possible causes of the long compilation times with the Cray compiler. |
I see. So, how can I help you? Should we wait for responses from the support on the compilation of boost libraries. |
The Boost compiled libraries will go away, the Boost headers will stay (although as we move to C++11 some Boost headers may be gradually replaced by C++11 standard features). Personally i do not remember extremely long compilation times on Cray (NERSC Cori) with Intel development environment. Would it be possible to time approximately --- compilation of what files or ALPSCore modules takes the most time? |
I think it is best to wait for a response from the support first. |
Ok, while waiting for the support response, I decided to fiddle around with the Intel compiler and got to a point, where the CTHYB will successfully compile, but fail to install. I think this might be related to the new static link option. Here is what I get: Install the project...
to the file:
No valid ELF RPATH or RUNPATH entry exists in the file; Makefile:97: recipe for target 'install' failed Can you fix this one? |
(Sorry, had to remove my previous comment) Looks like a relevant information: https://cmake.org/pipermail/cmake/2013-September/055759.html Proposed solution: set RPATH in CMake file, lines 61--73, conditionally depending on whether it's a static or shared build. The fix seems too small for a pull request, and i have not tried it myself, so i am attaching it as a formatted patch suitable for |
Thank you for the patch. I've applied it to the "static-link" branch. |
Thank you. Now the code compiles and installs with both the Intel and the GCC compiler and seems to run fine. There is still no answer from the support regarding the Cray compiler issues though. |
As requested by Florian,
I've introduced an CMake option for static linking in the "static-link" branch.
https://github.com/ALPSCore/CT-HYB/tree/static-link
One can switch to static linking by passing " -DCTHYB_BUILD_TYPE=static" to cmake.
I want to test the code.
But, unfortunately, I do not have access to any cray system.
Does anyone has it?
Florian, could you test the code?
BTW, how slow is the cray C++ compiler?
The text was updated successfully, but these errors were encountered: