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#ifndef HIP_MATH_CONSTANTS_H
7#define HIP_MATH_CONSTANTS_H
8
9#if !defined(__HIPCC_RTC__)
10#include <hip/hip_common.h>
11#endif
12
13#if defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
14#include "hip/amd_detail/amd_hip_math_constants.h"
15#elif !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
16#include "hip/nvidia_detail/nvidia_hip_math_constants.h"
17#else
18#error ("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
19#endif
20#endif