Astaroth
3.1
Scalable Multi-GPU Stencil Computations
Loading...
Searching...
No Matches
func_attributes.h
Go to the documentation of this file.
1
#pragma once
2
#ifndef UNUSED
3
4
#define UNUSED __attribute__((unused))
5
6
7
#endif
8
#ifndef HOST_DEVICE
9
#if (defined(__CUDACC__) || defined(__HIP_PLATFORM_AMD__)) && !defined(AC_CPU_CODE)
10
#define HOST_DEVICE __host__ __device__ UNUSED
11
#define HOST_DEVICE_INLINE __host__ __device__ __forceinline__ constexpr UNUSED
12
#define HOST_INLINE __host__ inline UNUSED
13
#else
14
#define HOST_DEVICE UNUSED
15
#define HOST_DEVICE_INLINE inline constexpr UNUSED
16
#define HOST_INLINE inline UNUSED
17
#endif
// __CUDACC__ || __HIPCC__
18
#endif
//HOST_DEVICE
acc-runtime
api
func_attributes.h
Generated by
1.15.0