From 90c8230cfa1a286472cab64a134f2f548d9ea84f Mon Sep 17 00:00:00 2001 From: Lakhan Singh Date: Fri, 15 Jun 2018 11:30:02 +0530 Subject: [PATCH] Made changes as suggested. --- tests/src/texture/hipGetAlgntoffset2D.cpp | 28 ++------ tests/src/texture/hipGetChanDesc.cpp | 87 ++--------------------- 2 files changed, 14 insertions(+), 101 deletions(-) diff --git a/tests/src/texture/hipGetAlgntoffset2D.cpp b/tests/src/texture/hipGetAlgntoffset2D.cpp index 66f60a4eec..ead492dbfc 100644 --- a/tests/src/texture/hipGetAlgntoffset2D.cpp +++ b/tests/src/texture/hipGetAlgntoffset2D.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2015-2017 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2015-Present 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 @@ -25,16 +25,10 @@ THE SOFTWARE. * RUN: %t * HIT_END */ -#include -#include -#include -#include - #include #include "test_common.h" using namespace std; -#define HIP_ENABLE_PRINTF #define R 8 //rows, height #define C 8 //columns, width @@ -59,7 +53,6 @@ int main(int argc, char** argv) { void runTest() { -string out; int val[R][C],i,j; size_t offset; @@ -73,26 +66,19 @@ for(i=0;i -#include -#include #include #include "test_common.h" @@ -36,9 +33,6 @@ using namespace std; #define R 8 //rows, height #define C 8 //columns, width - -texture tex; - bool testResult = true; void runTest(void); @@ -57,83 +51,16 @@ int main(int argc, char** argv) { void runTest() { -string out; -int val[R][C],i,j; - -for(i=0;i