include/hip/device_functions.h Source File

include/hip/device_functions.h Source File#

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