From 4314900bb41b8fce2d1b9ce248a44f7fa2035144 Mon Sep 17 00:00:00 2001 From: kchristin Date: Fri, 8 Nov 2024 18:45:43 +0200 Subject: [PATCH] define cuda attr --- test/CUDA/ErrorChecking.cu | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/CUDA/ErrorChecking.cu b/test/CUDA/ErrorChecking.cu index 6b1cc6772..09a945ba7 100644 --- a/test/CUDA/ErrorChecking.cu +++ b/test/CUDA/ErrorChecking.cu @@ -4,6 +4,16 @@ #include "clad/Differentiator/Differentiator.h" +#ifndef CUDA_RUNTIME_H +#define CUDA_RUNTIME_H + +#define __global__ +#define __device__ +#define __host__ + +#endif // CUDA_RUNTIME_H + + __global__ void kernel(int *out, int x, int y) { *out = x * y;