-
Notifications
You must be signed in to change notification settings - Fork 915
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
[BUG] Cannot use cudf::test::iterators::nulls_at ()
in .cu
test file
#17432
Comments
Can you provide an example .cu implementation that fails? |
Yes, it is used in many |
Yes, can you provide an example .cu implementation that fails? |
Now is the interesting part. Below is my example code:
With this code alone put in a I'll check to see if other existing |
Alright, here is a reproducible code:
|
Note that if I remove
by this:
Is that due to |
Sorry, I'm not seeing where the |
That is the point. There seems not any relation between them, but that is what the compiler does to me.
The example above does not test anything. It just reproduces the compile issue that I mentioned. |
Oh wow! So I know gtests generate code very strangely. |
Yes, this workaround works 👍 . Thanks for that. |
When using
cudf::test::iterators::nulls_at ()
in.cu
test file, I got this error:Notice that the implementation of that function is:
which initializes
std::vector<index_type>
upon creating the lambda, causing that issue.The text was updated successfully, but these errors were encountered: