diff --git a/third_party/xla/xla/service/gpu/conv_algorithm_picker.cc b/third_party/xla/xla/service/gpu/conv_algorithm_picker.cc index 8539b9ccd6ef41..0da9a6684dd59b 100644 --- a/third_party/xla/xla/service/gpu/conv_algorithm_picker.cc +++ b/third_party/xla/xla/service/gpu/conv_algorithm_picker.cc @@ -72,7 +72,11 @@ limitations under the License. #if (defined(GOOGLE_CUDA) && GOOGLE_CUDA) #include "third_party/gpus/cudnn/cudnn.h" // IWYU pragma: keep +#if CUDNN_VERSION >= 9000 +#include "third_party/gpus/cudnn/cudnn_ops.h" +#else #include "third_party/gpus/cudnn/cudnn_ops_infer.h" +#endif // CUDNN_VERSION >= 9000 #include "xla/service/gpu/buffer_comparator.h" #include "xla/stream_executor/gpu/redzone_allocator.h" #endif