include/hip/hip_complex.h Source File

include/hip/hip_complex.h Source File#

HIP Runtime API Reference: include/hip/hip_complex.h Source File
hip_complex.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_INCLUDE_HIP_HIP_COMPLEX_H
8#define HIP_INCLUDE_HIP_HIP_COMPLEX_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_complex.h>
16#elif !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
17#include <hip/nvidia_detail/nvidia_hip_complex.h>
18#else
19#error ("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
20#endif
21
22#endif