TensorRT 10.13.0
half.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: Copyright (c) 2016-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3 * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4 *
5 * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6 * property and proprietary rights in and to this material, related
7 * documentation and any modifications thereto. Any use, reproduction,
8 * disclosure or distribution of this material and related documentation
9 * without an express license agreement from NVIDIA CORPORATION or
10 * its affiliates is strictly prohibited.
11 */
12
13//
14// Custom wrapper around external half-precision header
15//
16// Header has some "extra parentheses" warnings when different rounding modes are used.
17
18#if defined(__GNUC__)
19#pragma GCC diagnostic push
20#pragma GCC diagnostic ignored "-Wparentheses"
21#endif
22
23#if defined(__clang__)
24#pragma clang diagnostic push
25#pragma clang diagnostic ignored "-Wmismatched-tags"
26#endif
27
28#ifndef HALF_ROUND_TIES_TO_EVEN
29#define HALF_ROUND_TIES_TO_EVEN 1
30#endif
31
32#include "ieee/half.h"
33
34#if defined(__clang__)
35#pragma clang diagnostic pop
36#endif
37
38#if defined(__GNUC__)
39#pragma GCC diagnostic pop
40#endif

  Copyright © 2024 NVIDIA Corporation
  Privacy Policy | Manage My Privacy | Do Not Sell or Share My Data | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact