From a11cd218011ba9cffbcffdbc1d417a263dec7c71 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Wed, 12 Oct 2016 19:26:59 -0500 Subject: [PATCH] indent correction for square.cu Change-Id: I2ca008e260b920ac3a503ad2a4bb28cd32300c98 [ROCm/hip commit: 1f28d992d30007424bf3c9e19c694d261236be28] --- projects/hip/samples/0_Intro/square/square.cu | 72 +++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/projects/hip/samples/0_Intro/square/square.cu b/projects/hip/samples/0_Intro/square/square.cu index ec8ca12fbf..5f6260df73 100644 --- a/projects/hip/samples/0_Intro/square/square.cu +++ b/projects/hip/samples/0_Intro/square/square.cu @@ -26,9 +26,9 @@ THE SOFTWARE. {\ cudaError_t error = cmd;\ if (error != cudaSuccess) { \ - fprintf(stderr, "error: '%s'(%d) at %s:%d\n", cudaGetErrorString(error), error,__FILE__, __LINE__); \ - exit(EXIT_FAILURE);\ - }\ + fprintf(stderr, "error: '%s'(%d) at %s:%d\n", cudaGetErrorString(error), error,__FILE__, __LINE__); \ + exit(EXIT_FAILURE);\ + }\ } @@ -43,55 +43,55 @@ vector_square(T *C_d, const T *A_d, size_t N) size_t stride = blockDim.x * gridDim.x ; for (size_t i=offset; i>> (C_d, A_d, N); + printf ("info: launch 'vector_square' kernel\n"); + vector_square <<>> (C_d, A_d, N); - printf ("info: copy Device2Host\n"); + printf ("info: copy Device2Host\n"); CHECK ( cudaMemcpy(C_h, C_d, Nbytes, cudaMemcpyDeviceToHost)); - printf ("info: check result\n"); + printf ("info: check result\n"); for (size_t i=0; i