summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCUDA/Inputs/cuda.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCUDA/Inputs/cuda.h')
-rw-r--r--clang/test/CodeGenCUDA/Inputs/cuda.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/clang/test/CodeGenCUDA/Inputs/cuda.h b/clang/test/CodeGenCUDA/Inputs/cuda.h
index 0fd175765a2..5d73b81041a 100644
--- a/clang/test/CodeGenCUDA/Inputs/cuda.h
+++ b/clang/test/CodeGenCUDA/Inputs/cuda.h
@@ -14,12 +14,21 @@ struct dim3 {
__host__ __device__ dim3(unsigned x, unsigned y = 1, unsigned z = 1) : x(x), y(y), z(z) {}
};
-typedef struct cudaStream *cudaStream_t;
-typedef enum cudaError {} cudaError_t;
#ifdef __HIP__
+typedef struct hipStream *hipStream_t;
+typedef enum hipError {} hipError_t;
int hipConfigureCall(dim3 gridSize, dim3 blockSize, size_t sharedSize = 0,
- cudaStream_t stream = 0);
+ hipStream_t stream = 0);
+extern "C" hipError_t __hipPushCallConfiguration(dim3 gridSize, dim3 blockSize,
+ size_t sharedSize = 0,
+ hipStream_t stream = 0);
+extern "C" hipError_t hipLaunchKernel(const void *func, dim3 gridDim,
+ dim3 blockDim, void **args,
+ size_t sharedMem,
+ hipStream_t stream);
#else
+typedef struct cudaStream *cudaStream_t;
+typedef enum cudaError {} cudaError_t;
extern "C" int cudaConfigureCall(dim3 gridSize, dim3 blockSize,
size_t sharedSize = 0,
cudaStream_t stream = 0);
OpenPOWER on IntegriCloud