Skip to content

Commit

Permalink
[Examples]-Added hip header file to .cu files in cloc examples to sup…
Browse files Browse the repository at this point in the history
…port removal of hip automatic mode
  • Loading branch information
amd-ethan committed Oct 10, 2019
1 parent a174cd3 commit 0f171db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/cloc/vector_copy_hip/vector_copy.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <hip/hip_runtime.h>
extern "C" __global__ void vector_copy(int *in, int *out) {
int id = (blockIdx.x*blockDim.x) + threadIdx.x;
out[id] = in[id];
Expand Down
1 change: 1 addition & 0 deletions examples/cloc/vector_copy_hip_omp/vector_copy.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <hip/hip_runtime.h>
extern "C" __global__ void vector_copy(int *in, int *out) {
int id = (blockIdx.x*blockDim.x) + threadIdx.x;
out[id] = in[id];
Expand Down

0 comments on commit 0f171db

Please sign in to comment.