-
Notifications
You must be signed in to change notification settings - Fork 449
Conversation
DVS CL: 30058645 |
Opt-out for our internal builds, since we'll still need to maintain and test any deprecated APIs.
This class uses deprecated texture management CUDART APIs. The "Obj"-flavor uses non-deprecated CUDART APIs.
f919860
to
9c9fb93
Compare
CUB_HOST_COMPILER == CUB_HOST_COMPILER_CLANG | ||
#pragma GCC diagnostic push | ||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" | ||
#endif |
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.
We do this so that we don't trigger deprecation warnings in our own code, only when users use the deprecated facility, correct?
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.
Right.
// This class uses the deprecated cudaBindTexture / cudaUnbindTexture APIs. | ||
// See issue NVIDIA/cub#191. | ||
// Turn off deprecation warnings when compiling class implementation in favor | ||
// of deprecating TexRefInputIterator instead. |
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.
I don't understand this comment, why "in favor of deprecating TexRefInputIterator"? Don't we disable warnings here so that they don't trigger in our own code, just on external usage?
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.
The internal usages of deprecated CUDART APIs are always suppressed, and instead we deprecate the CUB utilities that call them. So instead of emitting deprecation warnings for cudaBindTexture
, etc, we deprecate cub::TexRefInputIterator
directly.
This class uses deprecated CUDART APIs. The improved replacement,
TexObjInputIterator
, should be used instead. I'd like to get this in for 1.13.0 so folks get as much notice as possible.Also updated the deprecation mechanism to provide an opt-out, cmake options, and C++14 syntax. Our internal build will opt-out of deprecation warnings so we can continue to maintain and test deprecated APIs.