Closed
Description
Describe the issue
Building onnxruntime 1.20.1 with cuda 12.8.0
for almalinux 8
failed due to use of deprecated cuda function
I think I can move forward with adding -Wno-error=deprecated-declarations
build flag but it would be nice if onnxruntime can drop the use of this deprecated finction
Urgency
No response
Target platform
linux
Build script
using normal cmake build recipe with cuda enabled
Error / output
onnxruntime-1.20.1/onnxruntime/core/providers/cuda/tensor/compress_impl.cu:26:75: error: 'template<class Argument, class Result> struct t
hrust::THRUST_200700_600_700_750_800_890_NS::unary_function' is deprecated [-Werror=deprecated-declarations]
26 | struct CastToInt32 : public thrust::unary_function<int8_t, int32_t> {
| ^
cuda/12.8.0-15bfa86985d46d842bb5ecc3aca6c676/include/thrust/functional.h:85:23: note: declared here
85 | struct THRUST_DEPRECATED unary_function
| ^~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
Visual Studio Version
No response
GCC / Compiler Version
12.4