The compiler doesn't support BFLOAT16! on Jetson Nano

I’m encountering an error while trying to build ONNX Runtime with GPU support on my Jetson Nano. The build process fails with the message: 'The compiler doesn’t support BFLOAT16!!!

Build script

./build.sh --config Release --update --build --parallel --build_wheel --use_tensorrt --cuda_home /usr/local/cuda --cudnn_home /usr/lib/aarch64-linux-gnu --tensorrt_home /usr/lib/aarch64-linux-gnu

--   CMake version                     : 3.31.6
--   CMake command                     : /usr/local/bin/cmake
--   System                            : Linux
--   C++ compiler                      : /usr/bin/c++
--   C++ compiler version              : 11.4.0
--   CXX flags                         :  -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -Wnon-virtual-dtor
--   Build type                        : Release
--   Compile definitions               : EIGEN_MPL2_ONLY;_GNU_SOURCE;__STDC_FORMAT_MACROS
--   CMAKE_PREFIX_PATH                 : 
--   CMAKE_INSTALL_PREFIX              : /usr/local
--   CMAKE_MODULE_PATH                 : /home/beica/Scaricati/onnxruntime/cmake/external
-- 
--   ONNX version                      : 1.17.0
--   ONNX NAMESPACE                    : onnx
--   ONNX_USE_LITE_PROTO               : ON
--   USE_PROTOBUF_SHARED_LIBS          : OFF
--   Protobuf_USE_STATIC_LIBS          : ON
--   ONNX_DISABLE_EXCEPTIONS           : OFF
--   ONNX_DISABLE_STATIC_REGISTRATION  : OFF
--   ONNX_WERROR                       : OFF
--   ONNX_BUILD_TESTS                  : OFF
--   ONNX_BUILD_SHARED_LIBS            : 
--   BUILD_SHARED_LIBS                 : OFF
-- 
--   Protobuf compiler                 : 
--   Protobuf includes                 : 
--   Protobuf libraries                : 
--   BUILD_ONNX_PYTHON                 : OFF
-- 
-- Configured Eigen 3.4.90
-- 
-- dlpack is enabled.
CMake Deprecation Warning at /home/beica/Scaricati/onnxruntime/build/Linux/Release/_deps/dlpack-src/CMakeLists.txt:5 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- C++11 support has been enabled by default.
-- cudnn found at /usr/lib/aarch64-linux-gnu/libcudnn.so.
-- cuDNN: /usr/lib/aarch64-linux-gnu/libcudnn.so
-- cuDNN: /usr/include
-- Finished fetching external dependencies
NVCC_ERROR = nvcc fatal   : Unknown option '-Wstrict-aliasing'

NVCC_OUT = 1
CMake Error at CMakeLists.txt:781 (message):
  The compiler doesn't support BFLOAT16!!!

Hi,

This is a known issue from the ONNXRuntime side.

Thanks.