You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
### Description
<!-- Describe your changes. -->
Remove thrust::unary_function which is deprecated in later versions of
CUDA.
### Motivation and Context
Addresses issue: #23499
Describe the issue
Building onnxruntime 1.20.1 with
cuda 12.8.0
foralmalinux 8
failed due to use of deprecated cuda functionI 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 finctionUrgency
No response
Target platform
linux
Build script
using normal cmake build recipe with cuda enabled
Error / output
Visual Studio Version
No response
GCC / Compiler Version
12.4
The text was updated successfully, but these errors were encountered: