diff --git a/examples/cloc/vector_copy_hip/vector_copy.cu b/examples/cloc/vector_copy_hip/vector_copy.cu index 46ba26b68..59a6c748d 100644 --- a/examples/cloc/vector_copy_hip/vector_copy.cu +++ b/examples/cloc/vector_copy_hip/vector_copy.cu @@ -1,3 +1,4 @@ +#include extern "C" __global__ void vector_copy(int *in, int *out) { int id = (blockIdx.x*blockDim.x) + threadIdx.x; out[id] = in[id]; diff --git a/examples/cloc/vector_copy_hip_omp/vector_copy.cu b/examples/cloc/vector_copy_hip_omp/vector_copy.cu index 46ba26b68..59a6c748d 100644 --- a/examples/cloc/vector_copy_hip_omp/vector_copy.cu +++ b/examples/cloc/vector_copy_hip_omp/vector_copy.cu @@ -1,3 +1,4 @@ +#include extern "C" __global__ void vector_copy(int *in, int *out) { int id = (blockIdx.x*blockDim.x) + threadIdx.x; out[id] = in[id];