Conversation
9b677d9 to
4fe0913
Compare
|
CUDA build: |
|
Seems like an older nvcc doesn't like
Which one do you prefer? Since the other functions in this file don't have There's another failing job |
|
|
Sorry, maybe my comment was misleading. |
|
cvdef.h is not designed for GPU code. I propose to add local macro with NVCC check. |
|
The PR was discussed on the Core Team meeting. The team proposes to extend cvdef.h and re-use |
|
According to cppreference.com compiler support table, I have added the requested changes, please have a look. |
|
CUDA 11.7 on CI: |
6a57044 to
ac0fe55
Compare
|
CUDA 12.5: |
ac0fe55 to
5425a52
Compare
Add size() to CUDA PtrStepSz opencv#26042 According to [cppreference.com compiler support table](https://en.cppreference.com/w/cpp/compiler_support/17), `nvcc` supports `[[nodiscard]]` from version 11. ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [ ] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake Related: opencv#25659
According to cppreference.com compiler support table,
nvccsupports[[nodiscard]]from version 11.Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.
Related: #25659