2#pragma GCC system_header
20 int multiProcessorCount;
21 int maxThreadsPerBlock;
22 int sharedMemPerBlock;
26 int singleToDoublePrecisionPerfRatio;
31 double totalGlobalMem;
32 int localL1CacheSupported;
33 int globalL1CacheSupported;
36 int streamPrioritiesSupported;
40#define cudaStreamNonBlocking (0)
42#define cudaSharedMemBankSizeEightByte (0)
44#define cudaSuccess (0)
45#define cudaFailure (1)
46#define cudaErrorInvalidConfiguration (2)
47#define cudaErrorLaunchOutOfResources (3)
48#define cudaErrorNotReady (4)
50#define cudaMemcpyDeviceToHost (0)
51#define cudaMemcpyHostToDevice (1)
52#define cudaMemcpyDeviceToDevice (2)
53#define cudaMemcpyHostToHost (3)
54#define cudaMemcpyDefault (4)
55#define cudaDevAttrCooperativeLaunch (0)
56#define cudaDevAttrClockRate (0)
57#define cudaDevAttrMemoryClockRate (0)
58#define cudaDevAttrSingleToDoublePrecisionPerfRatio (0)
59#define cudaDevAttrComputeMode (0)
64#define __forceinline__
69#undef __launch_bounds__
70#define __launch_bounds__(x)
72#define __syncthreads()
78#define blockIdx ((dim3){0, 0, 0})
79#define blockDim ((dim3){1, 1, 1})
80#define gridDim ((dim3){1, 1, 1})
81#define make_int3(x, y, z) ((int3){x, y, z})
82#define make_float3(x, y, z) ((float3){x, y, z})
83#define make_double3(x, y, z) ((double3){x, y, z})
84#define KERNEL_LAUNCH(func,bpg,tpb,...) \
87#define KERNEL_VBA_LAUNCH(func,bpg,tpb,...) \
94#ifndef __HIP_PLATFORM_HCC__
95#define __HIP_PLATFORM_HCC__
98#ifndef __HIP_PLATFORM_AMD__
99#define __HIP_PLATFORM_AMD__
101#include <hip/hip_fp16.h>
102#include <hip/hip_runtime_api.h>
106#include <roctracer/roctracer_ext.h>
111#include <cuda_profiler_api.h>
113#include <cuda_runtime_api.h>
114#include <cuda_fp16.h>
117#define KERNEL_LAUNCH(func,bpg,tpb,...) \
118 func<<<bpg,tpb,__VA_ARGS__>>>
120#define KERNEL_VBA_LAUNCH(func,bpg,tpb,...) \
121 func<<<bpg,tpb,__VA_ARGS__>>>
126#define AC_READ_ONLY_LOAD(expr) expr
128#define AC_READ_ONLY_LOAD(expr) __ldg(&expr)
#define cudaEvent_t
Definition hip.h:34
#define cudaDeviceProp
Definition hip.h:71
#define cudaStream_t
Definition hip.h:25
#define cudaDeviceAttr
Definition hip.h:70
#define cudaMemcpyKind
Definition hip.h:44
#define cudaError_t
Definition hip.h:23
#define cudaSharedMemConfig
Definition hip.h:21