-
Notifications
You must be signed in to change notification settings - Fork 41
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 missing references in GooFit python bindings #272
base: daniel_CUDA11
Are you sure you want to change the base?
Conversation
CMakeLists.txt
Outdated
@@ -8,7 +8,7 @@ project( | |||
GOOFIT | |||
VERSION 2.2.3 | |||
LANGUAGES CXX) | |||
|
|||
SET(CUDA_SEPARABLE_COMPILATION ON) |
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.
This should already be set, I believe. Also, it should be set only for CUDA backend (which I think it already is).
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.
you are right, this was already set and this line is not needed
@henryiii after the changes here, the linking does not seem to be working when changing something and trying to recompile with errors like
It is then necessary to clean the build directory and recompile from scratch. Do you know how one could fix this? |
for more information, see https://pre-commit.ci
@henryiii @danielsibemol do you have any ideas how to properly do this, since adding |
Why can't we just make it optional when building; in fact, if we just pass |
No, I take that back. This is only a property target: https://cmake.org/cmake/help/latest/prop_tgt/CUDA_RESOLVE_DEVICE_SYMBOLS.html Also, it seems it is doing something slightly different than I thought. As long as it doesn't break GPU-less compilation (which it doesn't since the CI passes), I think it's okay. Sorry for flip-flopping on this! Okay to merge if you are. |
before this is merged, there is an issue with recompiling with these changes which would be good to understand. When modifying some code (e.g. source code of some PDF) and recompiling with python bindings, a linking issue appears. The only solution I found was to clean the build directory and compile from scratch, after which the compilation succeeds |
Changes to CMake to fix issues with missing references when using GooFit python bindings. Based on changes by @danielsibemol
On sneezy, the following setup should work for compiling GooFit
to use python bindings:
Notes:
@danielsibemol