Astaroth  3.1
Scalable Multi-GPU Stencil Computations
Loading...
Searching...
No Matches
hip.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2014-2026, Johannes Pekkila, Miikka Vaisala, Touko Puro.
3
4 This file is part of Astaroth.
5
6 Astaroth is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 Astaroth is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with Astaroth. If not, see <http://www.gnu.org/licenses/>.
18*/
19#pragma once
20
21#define cudaSharedMemConfig hipSharedMemConfig
22#define CUresult hipError_t
23#define cudaError_t hipError_t
24#define cudaSuccess hipSuccess
25#define cudaStream_t hipStream_t
26#define cudaGetErrorString hipGetErrorString
27#define cuFloatComplex hipFloatComplex
28#define make_cuFloatComplex make_hipFloatComplex
29#define cuDoubleComplex hipDoubleComplex
30#define make_cuDoubleComplex make_hipDoubleComplex
31#define cudaPeekAtLastError hipPeekAtLastError
32#define cudaGetLastError hipGetLastError
33#define cudaDeviceSynchronize hipDeviceSynchronize
34#define cudaEvent_t hipEvent_t
35#define cudaEventCreate hipEventCreate
36#define cudaEventDestroy hipEventDestroy
37#define cudaEventRecord hipEventRecord
38#define cudaEventSynchronize hipEventSynchronize
39#define cudaEventElapsedTime hipEventElapsedTime
40#define cudaStreamSynchronize hipStreamSynchronize
41#define cudaStreamCreate hipStreamCreate
42#define cudaStreamCreateWithPriority hipStreamCreateWithPriority
43#define cudaStreamDestroy hipStreamDestroy
44#define cudaMemcpyKind hipMemcpyKind
45#define cudaMemcpyHostToDevice hipMemcpyHostToDevice
46#define cudaMemcpyDeviceToHost hipMemcpyDeviceToHost
47#define cudaMemcpyDeviceToDevice hipMemcpyDeviceToDevice
48#define cudaMemcpyHostToHost hipMemcpyHostToHost
49#define cudaSetDevice hipSetDevice
50#define cudaMemcpy hipMemcpy
51#define cudaMemcpyAsync hipMemcpyAsync
52#define cudaMemcpyToSymbol hipMemcpyToSymbol
53#define cudaMemcpyFromSymbol hipMemcpyFromSymbol
54#define cudaMemcpyToSymbolAsync hipMemcpyToSymbolAsync
55#define cudaMemcpyFromSymbolAsync hipMemcpyFromSymbolAsync
56#define cudaMemcpy2D hipMemcpy2D
57#define cudaMemcpy2DAsync hipMemcpy2DAsync
58#define cudaMemcpyDefault hipMemcpyDefault
59#define cudaMemset hipMemset
60#define cudaMalloc hipMalloc
61#define cudaMallocHost hipHostMalloc
62#define cudaFreeHost hipHostFree
63#define cudaFree hipFree
64#define cudaGetDevice hipGetDevice
65#define cudaDevAttrCooperativeLaunch hipDeviceAttributeCooperativeLaunch
66#define cudaDevAttrClockRate hipDeviceAttributeClockRate
67#define cudaDevAttrMemoryClockRate hipDeviceAttributeMemoryClockRate
68#define cudaDevAttrSingleToDoublePrecisionPerfRatio hipDeviceAttributeSingleToDoublePrecisionPerfRatio
69#define cudaDevAttrComputeMode hipDeviceAttributeComputeMode
70#define cudaDeviceAttr hipDeviceAttribute_t
71#define cudaDeviceProp hipDeviceProp_t
72#define cudaGetDeviceCount hipGetDeviceCount
73#define cudaLaunchCooperativeKernel hipLaunchCooperativeKernel
74#define cudaDeviceGetPCIBusId hipDeviceGetPCIBusId
75#define cudaMemGetInfo hipMemGetInfo
76#define cudaStreamNonBlocking hipStreamNonBlocking
77#define cudaMemcpyPeerAsync hipMemcpyPeerAsync
78#define cudaGetDeviceProperties hipGetDeviceProperties
79#define cudaDeviceGetAttribute hipDeviceGetAttribute
80
81#define cudaStreamQuery hipStreamQuery
82#define cudaErrorNotReady hipErrorNotReady
83#define cudaDeviceGetStreamPriorityRange hipDeviceGetStreamPriorityRange
84
85#define cudaProfilerStart roctracer_start
86#define cudaProfilerStop roctracer_stop
87
88#define cudaDeviceSetSharedMemConfig hipDeviceSetSharedMemConfig
89#define cudaFuncSetSharedMemConfig hipFuncSetSharedMemConfig
90#define cudaSharedMemBankSizeEightByte hipSharedMemBankSizeEightByte
91#define cudaSharedMemBankSizeFourByte hipSharedMemBankSizeFourByte
92#define cudaDeviceSetCacheConfig hipDeviceSetCacheConfig
93#define cudaFuncCachePreferShared hipFuncCachePreferShared
94#define cudaFuncCachePreferL1 hipFuncCachePreferL1
95#define cudaErrorInvalidConfiguration hipErrorInvalidConfiguration
96#define cudaErrorLaunchOutOfResources hipErrorLaunchOutOfResources
97#define cudaGetErrorName hipGetErrorName
98#define cudaMemGetInfo hipMemGetInfo
99#define cudaOccupancyMaxActiveBlocksPerMultiprocessor hipOccupancyMaxActiveBlocksPerMultiprocessor
100#define curandStateXORWOW_t hiprandStateXORWOW_t
101#define curandStateMRG32k3a_t hiprandStateMRG32k3a_t
102#define curandState hiprandState
103#define curand_init hiprand_init
104#define curand_uniform hiprand_uniform
105#define curand_uniform_double hiprand_uniform_double
106#define cudaDriverGetVersion hipDriverGetVersion
107#define cudaRuntimeGetVersion hipRuntimeGetVersion
108