onnxruntime icon indicating copy to clipboard operation
onnxruntime copied to clipboard

[Build] ORT can't build with cuda 12.9

Open yf711 opened this issue 9 months ago • 3 comments

Describe the issue

/onnxruntime/onnxruntime/contrib_ops/cuda/bert/embed_layer_norm_impl.cu(42): error #1444-D: type "cub::CUB_200802_SM_800::Min" was declared deprecated ("use cuda::minimum instead")
    cub::Min min;
             ^
/usr/local/cuda/targets/x86_64-linux/include/cub/thread/thread_operators.cuh(99): note #3287-D: because of a "deprecated" attribute
  using Min [[deprecated("use cuda::minimum instead")]] = ::cuda::minimum<>;
              ^

Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"

Deprecated apis were used and need to be updated/suppressed when using cuda>=12.9

Urgency

Necessary to support cuda 12.9

Target platform

All

Build script

./build.sh --config Release --use_cuda --cuda_home /usr/local/cuda --cudnn_home /usr/lib/x86_64-linux-gnu --use_tensorrt --tensorrt_home /usr/lib/x86_64-linux-gnu --build_shared_lib --parallel --skip_tests --allow_running_as_root --cmake_extra_defines 'CMAKE_CUDA_ARCHITECTURES=80-real'

Error / output

/onnxruntime/onnxruntime/contrib_ops/cuda/bert/embed_layer_norm_impl.cu(42): error #1444-D: type "cub::CUB_200802_SM_800::Min" was declared deprecated ("use cuda::minimum instead")
    cub::Min min;
             ^
/usr/local/cuda/targets/x86_64-linux/include/cub/thread/thread_operators.cuh(99): note #3287-D: because of a "deprecated" attribute
  using Min [[deprecated("use cuda::minimum instead")]] = ::cuda::minimum<>;
              ^

Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"

Visual Studio Version

No response

GCC / Compiler Version

No response

yf711 avatar May 12 '25 22:05 yf711

Patch appears in discussion I posted here https://github.com/microsoft/onnxruntime/discussions/24934

rajb245 avatar Jun 06 '25 12:06 rajb245

Patch appears in discussion I posted here #24934

Nevermind the fix is merged

rajb245 avatar Jun 06 '25 12:06 rajb245

Thank you

mc-nv avatar Jun 12 '25 17:06 mc-nv

Applying stale label due to no activity in 30 days

Applying stale label due to no activity in 30 days

Closing issue due to no activity in 30 days