Skip to content

[Build] [Bug] The compiler doesn't support BFLOAT16!!! on Jetson Nano #24230

@klimgeorge

Description

@klimgeorge

Describe the issue

Getting error
The compiler doesn't support BFLOAT16!!!

Based on this thread #21383 i should update to Jetpack 6, but Jetson Nano is only supported through the 4.x series of JetPack/SDK Manager

Urgency

No response

Target platform

Jetson Nano - Ubuntu 18.04 - Cuda 10.2.300

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

Error / output

-- 
-- ******** Summary ********
--   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!!!

Visual Studio Version

No response

GCC / Compiler Version

11.4.0-2

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using templateplatform:jetsonissues related to the NVIDIA Jetson platformstaleissues that have not been addressed in a while; categorized by a bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions