From 0f171db526bb631dc0c161c8cb1a06d78eee1c11 Mon Sep 17 00:00:00 2001 From: estewart08 Date: Thu, 10 Oct 2019 13:38:22 -0500 Subject: [PATCH] [Examples]-Added hip header file to .cu files in cloc examples to support removal of hip automatic mode --- examples/cloc/vector_copy_hip/vector_copy.cu | 1 + examples/cloc/vector_copy_hip_omp/vector_copy.cu | 1 + 2 files changed, 2 insertions(+) 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];