include/hip/hip_math_constants.h Source File

include/hip/hip_math_constants.h Source File#

HIP Runtime API Reference: include/hip/hip_math_constants.h Source File
hip_math_constants.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Advanced Micro Devices, Inc., or its affiliates.
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7#ifndef HIP_MATH_CONSTANTS_H
8#define HIP_MATH_CONSTANTS_H
9
10#if !defined(__HIPCC_RTC__)
11#include <hip/hip_common.h>
12#endif
13
14#if defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
15#include "hip/amd_detail/amd_hip_math_constants.h"
16#elif !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
17#include "hip/nvidia_detail/nvidia_hip_math_constants.h"
18#else
19#error ("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
20#endif
21#endif