From 40cd655ae09501af912b06c3bafaeb96a09c71aa Mon Sep 17 00:00:00 2001 From: David Rohr Date: Wed, 18 Nov 2026 13:17:08 +0100 Subject: [PATCH 1/2] ONNXRuntime: Use temporary GPUORTFloat16.h file for backward compatibility since needed by O2Physics --- Common/ML/include/ML/3rdparty/GPUORTFloat16.h | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Common/ML/include/ML/3rdparty/GPUORTFloat16.h diff --git a/Common/ML/include/ML/3rdparty/GPUORTFloat16.h b/Common/ML/include/ML/3rdparty/GPUORTFloat16.h new file mode 100644 index 0000000000000..af568cf749352 --- /dev/null +++ b/Common/ML/include/ML/3rdparty/GPUORTFloat16.h @@ -0,0 +1,31 @@ +// Copyright 2019-2020 CERN and copyright holders of ALICE O2. +// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. +// All rights not expressly granted are reserved. +// +// This software is distributed under the terms of the GNU General Public +// License v3 (GPL Version 3), copied verbatim in the file "COPYING". +// +// In applying this license CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +/// \author David Rohr +/// Temporary file to support O2Physics code that uses it, should migrate away from this. + +#ifndef GPUORTFLOAT16_H +#define GPUORTFLOAT16_H + +#if __cplusplus >= 202302L && __has_include() +#include +#endif + +namespace o2::OrtDataType +{ +#elif __cplusplus >= 202302L && defined(__STDCPP_FLOAT16_T__) + using Float16_t = std::float16_t; +#else + using Float16_t = _Float16; +#endif +} + +#endif From c670ef88a9cb7fd1159b53fbccf88b2bfce5654d Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Wed, 18 Nov 2026 13:13:09 +0000 Subject: [PATCH 2/2] Please consider the following formatting changes --- Common/ML/include/ML/3rdparty/GPUORTFloat16.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/ML/include/ML/3rdparty/GPUORTFloat16.h b/Common/ML/include/ML/3rdparty/GPUORTFloat16.h index af568cf749352..5a8041de84adc 100644 --- a/Common/ML/include/ML/3rdparty/GPUORTFloat16.h +++ b/Common/ML/include/ML/3rdparty/GPUORTFloat16.h @@ -22,9 +22,9 @@ namespace o2::OrtDataType { #elif __cplusplus >= 202302L && defined(__STDCPP_FLOAT16_T__) - using Float16_t = std::float16_t; +using Float16_t = std::float16_t; #else - using Float16_t = _Float16; +using Float16_t = _Float16; #endif }