2016-08-19 23:02:04 -05:00
|
|
|
/*
|
2021-07-02 11:19:03 -07:00
|
|
|
Copyright (c) 2015 - 2021 Advanced Micro Devices, Inc. All rights reserved.
|
2016-10-15 22:52:10 +05:30
|
|
|
|
2016-08-19 23:02:04 -05:00
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
|
furnished to do so, subject to the following conditions:
|
2016-10-15 22:52:10 +05:30
|
|
|
|
2016-08-19 23:02:04 -05:00
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
|
all copies or substantial portions of the Software.
|
2016-10-15 22:52:10 +05:30
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
2016-08-19 23:02:04 -05:00
|
|
|
THE SOFTWARE.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-03-31 12:11:34 -05:00
|
|
|
#ifndef HIP_INCLUDE_HIP_HIP_COMPLEX_H
|
|
|
|
|
#define HIP_INCLUDE_HIP_HIP_COMPLEX_H
|
2016-08-19 23:02:04 -05:00
|
|
|
|
|
|
|
|
#include <hip/hip_common.h>
|
|
|
|
|
|
2020-12-15 17:38:08 -05:00
|
|
|
#if (defined(__HIP_PLATFORM_HCC__) || defined(__HIP_PLATFORM_AMD__)) && !(defined(__HIP_PLATFORM_NVCC__) || defined(__HIP_PLATFORM_NVIDIA__))
|
2021-05-28 23:15:18 +00:00
|
|
|
#include <hip/amd_detail/amd_hip_complex.h>
|
2020-12-15 17:38:08 -05:00
|
|
|
#elif !(defined(__HIP_PLATFORM_HCC__) || defined(__HIP_PLATFORM_AMD__)) && (defined(__HIP_PLATFORM_NVCC__) || defined(__HIP_PLATFORM_NVIDIA__))
|
2021-05-28 23:15:18 +00:00
|
|
|
#include <hip/nvidia_detail/nvidia_hip_complex.h>
|
2016-08-19 23:02:04 -05:00
|
|
|
#else
|
2020-12-15 17:38:08 -05:00
|
|
|
#error("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
|
2016-08-19 23:02:04 -05:00
|
|
|
#endif
|
2017-03-31 12:11:34 -05:00
|
|
|
|
|
|
|
|
#endif
|