include/hip/hip_cooperative_groups.h Source File

include/hip/hip_cooperative_groups.h Source File#

HIP Runtime API Reference: include/hip/hip_cooperative_groups.h Source File
hip_cooperative_groups.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
14#ifndef HIP_INCLUDE_HIP_HIP_COOPERATIVE_GROUP_H
15#define HIP_INCLUDE_HIP_HIP_COOPERATIVE_GROUP_H
16
17#include <hip/hip_version.h>
18#include <hip/hip_common.h>
19
20#if defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
21#if __cplusplus && defined(__clang__) && defined(__HIP__)
23#endif
24#elif !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
25#include <hip/nvidia_detail/nvidia_hip_cooperative_groups.h>
26#else
27#error ("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
28#endif
29
30#endif // HIP_INCLUDE_HIP_HIP_COOPERATIVE_GROUP_H
Device side implementation of Cooperative Group feature.