-
Notifications
You must be signed in to change notification settings - Fork 62
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
BUGFIX: add ARB_CUDA flag to example catalogue #2039
Conversation
boeschf
commented
Nov 17, 2022
- adding this flag manually follows the same strategy as the dummy catalogue in unit tests
@@ -6,6 +6,10 @@ make_catalogue_standalone( | |||
CXX_FLAGS_TARGET ${ARB_CXX_FLAGS_TARGET_FULL} | |||
VERBOSE ON) | |||
|
|||
if(ARB_WITH_NVCC) |
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.
There is also ARB_WITH_CUDA_CLANG
and ARB_WITH_HIP_CLANG
to consider.
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.
maybe, but then the tests should also handle this, and they do not - what is the difference?
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.
For HIP, we need to define ARB_HIP
and ARB_CUDA
for the other two. See https://github.com/arbor-sim/arbor/blob/master/CMakeLists.txt#L369
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.
yes, you are right. Changes:
- use
make_catalogue
instead ofmake_catalogue_standalone
- link to
arbor-private-deps
- mark all files as c++ sources when using
cuda-clang
orhip-clang
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.
Looks good to me apart from that one comment. Maybe also use bors to run tests including GPU, if that's still working.
bors try |
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.
Not sure how to check if bors is still running, but this lgtm otherwise.
tryTimed out. |
1 similar comment
tryTimed out. |