-
Notifications
You must be signed in to change notification settings - Fork 196
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
Do not emit diagnostic with extended device lambdas with preserved re… #1495
Conversation
libcudacxx/include/cuda/std/detail/libcxx/include/__functional/invoke.h
Outdated
Show resolved
Hide resolved
libcudacxx/include/cuda/std/detail/libcxx/include/__functional/invoke.h
Outdated
Show resolved
Hide resolved
libcudacxx/include/cuda/std/detail/libcxx/include/__functional/invoke.h
Outdated
Show resolved
Hide resolved
libcudacxx/include/cuda/std/detail/libcxx/include/__functional/invoke.h
Outdated
Show resolved
Hide resolved
libcudacxx/include/cuda/std/detail/libcxx/include/__functional/invoke.h
Outdated
Show resolved
Hide resolved
I'll be adding a test like this
Is there a specific location where should be add it? |
The tests are here libcudacxx/test/libcudacxx/cuda/proclaim_return_type.pass.cpp |
I noticed that std/utilities/meta/meta.trans/meta.trans.other/result_of.fail.cpp it supposed it should fail
Probably related to the PR since the compiler diagnostic was updated. Should I update the test to expect to pass instead? |
We should keep that test as failing, as it does fail in older nvcc versions that do not support the trailing return type You can add a |
Test added in proclaim_return_type.pass.cpp |
/ok to test |
I updated the test because the support of CUDA 12.3 below and std version. |
libcudacxx/include/cuda/std/detail/libcxx/include/__functional/invoke.h
Outdated
Show resolved
Hide resolved
@Revaj please rebase so we oktotest it :) |
5169b38
to
24d0d2c
Compare
Done 😀 |
libcudacxx/test/libcudacxx/std/utilities/meta/meta.trans/meta.trans.other/result_of.fail.cpp
Outdated
Show resolved
Hide resolved
/ok to test |
libcudacxx/include/cuda/std/detail/libcxx/include/__functional/invoke.h
Outdated
Show resolved
Hide resolved
/ok to test |
Head branch was pushed to by a user without write access
1209076
to
7f71edf
Compare
For some reason, one of the tests failed from CI The test
|
I merged by error the branch, I'm going to fix it when I can :( |
/ok to test |
64c8d37
to
7f71edf
Compare
Fix typo in diagnostic message Use _LIBCUDACXX_CUDACC_BELOW_12_3 instead of CUDART_VERSION and swap branches from diagnostic
7f71edf
to
df96141
Compare
I have fixed the merge error in the branch so now it should be ok |
/ok to test |
The windows CI failures look unrelated. Rerunning those jobs. |
It seems the tests passed and it's ready to merge 😃 |
Thanks @Revaj ! |
Description
Corresponding from #1457
Allows extended lambdas with queryable return types for invoke_result_t
Checklist