From 48b91908bc24a0dacf016a5ae94f47ed85e05e73 Mon Sep 17 00:00:00 2001 From: Julia Jiang <56359287+jujiang-del@users.noreply.github.com> Date: Thu, 25 Nov 2021 04:38:06 -0500 Subject: [PATCH] SWDEV-286322 - clean up trailing space - part2 (#2383) Change-Id: Id659c029a33874bc9a7d4c42bffd06cdc1845e2e --- .../module/hipExtLaunchMultiKernelMultiDevice.cpp | 6 +++--- tests/src/texture/hipBindTexRef1DFetch.cpp | 2 +- tests/src/texture/hipNormalizedFloatValueTex.cpp | 8 ++++---- tests/src/texture/hipTex1DFetchCheckModes.cpp | 4 ++-- tests/src/texture/hipTexObjPitch.cpp | 4 ++-- tests/src/texture/simpleTexture2DLayered.cpp | 4 ++-- tests/src/texture/simpleTexture3D.cpp | 4 ++-- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/tests/src/runtimeApi/module/hipExtLaunchMultiKernelMultiDevice.cpp b/tests/src/runtimeApi/module/hipExtLaunchMultiKernelMultiDevice.cpp index 30701a39f2..c47c472766 100644 --- a/tests/src/runtimeApi/module/hipExtLaunchMultiKernelMultiDevice.cpp +++ b/tests/src/runtimeApi/module/hipExtLaunchMultiKernelMultiDevice.cpp @@ -33,7 +33,7 @@ THE SOFTWARE. #include #define MAX_GPUS 8 -/* +/* * Square each element in the array A and write to array C. */ #define NUM_KERNEL_ARGS 3 @@ -73,7 +73,7 @@ int main(int argc, char *argv[]) // Fill with Phi + i for (size_t i = 0; i < N; i++) { - A_h[i] = 1.618f + i; + A_h[i] = 1.618f + i; } const unsigned blocks = 512; @@ -136,6 +136,6 @@ int main(int argc, char *argv[]) } } } - + printf ("PASSED!\n"); } diff --git a/tests/src/texture/hipBindTexRef1DFetch.cpp b/tests/src/texture/hipBindTexRef1DFetch.cpp index 0a890629c3..b2ea94b0bc 100644 --- a/tests/src/texture/hipBindTexRef1DFetch.cpp +++ b/tests/src/texture/hipBindTexRef1DFetch.cpp @@ -68,7 +68,7 @@ int runTest() { HIPCHECK(hipMalloc(&texBuf, N * sizeof(float))); HIPCHECK(hipMalloc(&devBuf, N * sizeof(float))); HIPCHECK(hipMemcpy(texBuf, val, N * sizeof(float), hipMemcpyHostToDevice)); - + tex.addressMode[0] = hipAddressModeClamp; tex.addressMode[1] = hipAddressModeClamp; tex.filterMode = hipFilterModePoint; diff --git a/tests/src/texture/hipNormalizedFloatValueTex.cpp b/tests/src/texture/hipNormalizedFloatValueTex.cpp index f2f1937132..3ac14b314d 100644 --- a/tests/src/texture/hipNormalizedFloatValueTex.cpp +++ b/tests/src/texture/hipNormalizedFloatValueTex.cpp @@ -1,16 +1,16 @@ /* Copyright (c) 2019 - 2021 Advanced Micro Devices, Inc. All rights reserved. - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -181,7 +181,7 @@ int main(int argc, char** argv) #ifdef __HIP_PLATFORM_AMD__ std::cout << "Arch - AMD GPU :: " << props.gcnArch << std::endl; #endif - + if(textureFilterMode == 0) { printf("Test hipFilterModePoint\n"); status = runTest(); diff --git a/tests/src/texture/hipTex1DFetchCheckModes.cpp b/tests/src/texture/hipTex1DFetchCheckModes.cpp index d6f7712ce2..856eaeb05a 100644 --- a/tests/src/texture/hipTex1DFetchCheckModes.cpp +++ b/tests/src/texture/hipTex1DFetchCheckModes.cpp @@ -61,7 +61,7 @@ int runTest(hipTextureAddressMode addressMode, hipTextureFilterMode filterMode) // Allocating the required buffer on gpu device float *texBuf, *texBufOut; float val[N], output[N]; - + for (int i = 0; i < N; i++) { val[i] = i+1; output[i] = 0.0; @@ -85,7 +85,7 @@ int runTest(hipTextureAddressMode addressMode, hipTextureFilterMode filterMode) texDesc.addressMode[0] = addressMode; texDesc.addressMode[1] = addressMode; - texDesc.filterMode = filterMode; + texDesc.filterMode = filterMode; texDesc.normalizedCoords = false; // Creating texture object diff --git a/tests/src/texture/hipTexObjPitch.cpp b/tests/src/texture/hipTexObjPitch.cpp index 47e09d83a9..6869081a20 100644 --- a/tests/src/texture/hipTexObjPitch.cpp +++ b/tests/src/texture/hipTexObjPitch.cpp @@ -49,12 +49,12 @@ void texture2Dtest() for(size_t i=1; i <= (SIZE_H*SIZE_W); i++){ A[i-1] = i; } - + size_t devPitchA; HIPCHECK(hipMallocPitch((void**)&devPtrA, &devPitchA ,SIZE_W*sizeof(TYPE_t), SIZE_H)) ; HIPCHECK(hipMemcpy2D(devPtrA, devPitchA, A, SIZE_W*sizeof(TYPE_t), SIZE_W*sizeof(TYPE_t), SIZE_H, hipMemcpyHostToDevice)); - + // Use the texture object hipResourceDesc texRes; memset(&texRes, 0, sizeof(texRes)); diff --git a/tests/src/texture/simpleTexture2DLayered.cpp b/tests/src/texture/simpleTexture2DLayered.cpp index 0e1d55095d..7709a8cbec 100644 --- a/tests/src/texture/simpleTexture2DLayered.cpp +++ b/tests/src/texture/simpleTexture2DLayered.cpp @@ -82,7 +82,7 @@ void runTest(int width,int height,int num_layers,texture texi; texture texc; template -__global__ void simpleKernel3DArray(T* outputData, +__global__ void simpleKernel3DArray(T* outputData, int width, int height,int depth) { @@ -114,7 +114,7 @@ void runTest(int width,int height,int depth,texture