-
Notifications
You must be signed in to change notification settings - Fork 1
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
Improving quality of HPX build #3
Conversation
sithhell
commented
Nov 30, 2017
- Adding jemalloc as allocator
- Forwarding the proper build type
- Setting build type to release in QUICKSTART script
6644f4c
to
e3b9531
Compare
cmake/allscale_runtime.cmake
Outdated
@@ -15,9 +20,11 @@ ExternalProject_Add( | |||
-DHPX_WITH_THREAD_IDLE_RATES=On | |||
-DBOOST_ROOT=${Boost_INCLUDE_DIRS}/.. | |||
-DHWLOC_ROOT=${Hwloc_INCLUDE_DIRS}/.. | |||
-DJEMALLOC_FOUND=True | |||
-DJEMALLOC_LIBRARIES=${JEMALLOC_} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be JEMALLOC_LIBRARY
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct. This is now fixed.
e3b9531
to
3fccfce
Compare
- Adding jemalloc as allocator - Forwarding the proper build type
3fccfce
to
81b6131
Compare
I have done some slight modifications, please have a look and if they are okay with you. |
Looks good, thanks! |
It seems like this change causes the runtime library name to change. Before this, it was Do you have an idea what could have changed this? Maybe I am mistaken and the error does not come from this commit. |
No, I have no idea where this comes from. The name was alwaus |
Nope, it wasn't. I built the project today in the morning from scratch using commit |
I have a few more changes incoming regarding the build settings. The build type mismatches are really severe. |
shrug it has always been libhpx_allscale.so when the runtime was built standalone. I have no idea what was messing up the names previously. |
I think I found the culprit. With these changes we now set @sithhell You are correct that the library should indeed be named More interestingly, I found that the bottom layer of this error seems to be in HPX. Their CMake infrastructure basically relies on having a build type set -- yet the logic for setting the default build type is flawed. |
Posted a detailed description to STEllAR-GROUP/hpx#3033, which also mentions this issue. |
I am completely clueless as to why a unset build type would lead to an omission of the For the time being, I'd also suggest to fix the build type for HPX and AllScale Runtime to release, as a default, this avoids various problems due to mismatch of debug vs. release build flags and should get us going for a short term solution. Please see #4 for further discussion on how to improve the situation overall. |
- Adding jemalloc as allocator - Forwarding the proper build type - Adjust backend library linking name (see #3)
This was merged in a3b9778, yet I just discovered that we need to forward different Jemalloc flags. I am testing this locally right now, should be live soon. |
Ok, merging this just yet was not a good idea ;) |
This has been resolved on master. |