-
Notifications
You must be signed in to change notification settings - Fork 163
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
Simple reduction example with buffers fails with an assert when AdaptiveCpp is compiled in debug mode. #1476
Comments
I have compiled your program with a default adaptiveCpp config and it gives the runtime error:
And then segfaults, not sure if it contributes to the discussion |
This is not an error, just a warning that points out that you could have created the accessor with the |
Are there adaptive tools to produce such stacktrace?
|
@FattiMei Just use gdb? |
Thank you for the suggestions, unfortunately I can't reproduce the segfault anymore, but I solved my problems |
It seems that the problem described by @nilsfriess is limited to the buffer-accessor model. With USM I don't see the issue. |
To Reproduce
Build AdaptiveCpp from current develop in debug mode (i.e. pass
-DCMAKE_BUILD_TYPE=Debug
) and then compile the following example:This compiles fine but running the example fails with the message:
Happens both with
--acpp-targets=cuda:sm_61
andgeneric
. Here's the full output with ACPP_DEBUG_LEVEL=3: out.logWhen AdaptiveCpp is compiled in release mode, the example runs fine and computes the correct result.
The text was updated successfully, but these errors were encountered: