From 891d5efd18d60c7c53e73447efcbe5eaface2efc Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Thu, 15 Sep 2016 11:40:17 -0500 Subject: [PATCH] added vimrc for current project 1. Added vimrc config file for HIP 2. Corrected square sample indent Change-Id: I3e1d92403571148fe6825db6ad63ad925ae69519 [ROCm/clr commit: 8faf2ed7e3dff0b55a1a0f2f3233c08290792e93] --- projects/clr/hipamd/.gitignore | 1 - projects/clr/hipamd/.vimrc | 4 ++ .../samples/0_Intro/square/square.hipref.cpp | 66 +++++++++---------- 3 files changed, 36 insertions(+), 35 deletions(-) create mode 100644 projects/clr/hipamd/.vimrc diff --git a/projects/clr/hipamd/.gitignore b/projects/clr/hipamd/.gitignore index 450d3bc41b..e298b686bf 100644 --- a/projects/clr/hipamd/.gitignore +++ b/projects/clr/hipamd/.gitignore @@ -1,4 +1,3 @@ -.* *.o *.exe *.swp diff --git a/projects/clr/hipamd/.vimrc b/projects/clr/hipamd/.vimrc new file mode 100644 index 0000000000..ed64acd347 --- /dev/null +++ b/projects/clr/hipamd/.vimrc @@ -0,0 +1,4 @@ +:set tabstop=4 +:set shiftwidth=4 +:set expandtab +:set smartindent diff --git a/projects/clr/hipamd/samples/0_Intro/square/square.hipref.cpp b/projects/clr/hipamd/samples/0_Intro/square/square.hipref.cpp index aa14077738..7ca3a7500d 100644 --- a/projects/clr/hipamd/samples/0_Intro/square/square.hipref.cpp +++ b/projects/clr/hipamd/samples/0_Intro/square/square.hipref.cpp @@ -31,7 +31,6 @@ THE SOFTWARE. }\ } - /* * Square each element in the array A and write to array C. */ @@ -43,55 +42,54 @@ vector_square(hipLaunchParm lp, T *C_d, const T *A_d, size_t N) size_t stride = hipBlockDim_x * hipGridDim_x ; for (size_t i=offset; i