include/hip/hip_vector_types.h Source File

include/hip/hip_vector_types.h Source File#

HIP Runtime API Reference: include/hip/hip_vector_types.h Source File
hip_vector_types.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
8
9#ifndef HIP_INCLUDE_HIP_HIP_VECTOR_TYPES_H
10#define HIP_INCLUDE_HIP_HIP_VECTOR_TYPES_H
11
12#include <hip/hip_common.h>
13
14
15#if defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
16#if __cplusplus
17#include <hip/amd_detail/amd_hip_vector_types.h>
18#endif
19#elif !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
20#include <vector_types.h>
21#else
22#error ("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
23#endif
24
25#endif