Skip to content

Commit

Permalink
define cuda attr
Browse files Browse the repository at this point in the history
  • Loading branch information
kchristin22 committed Nov 8, 2024
1 parent bd9e5af commit 4314900
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/CUDA/ErrorChecking.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4314900

Please sign in to comment.