[clfft] 41/107: minor fix, cleaning up unnecessary variables

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 30 18:06:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository clfft.

commit 1c14c415d1dd8d9a73fa2546086508a34f2008af
Author: bragadeesh <bragadeesh.natarajan at amd>
Date:   Fri Mar 13 19:02:22 2015 -0500

    minor fix, cleaning up unnecessary variables
---
 src/client/openCL.misc.cpp | 5 +----
 src/tests/test_constants.h | 1 -
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/client/openCL.misc.cpp b/src/client/openCL.misc.cpp
index b369956..ba6fdc4 100644
--- a/src/client/openCL.misc.cpp
+++ b/src/client/openCL.misc.cpp
@@ -214,8 +214,6 @@ void prettyPrintDeviceInfo( const cl_device_id& dId )
 void prettyPrintCLPlatforms(std::vector< cl_platform_id >& platforms,
 	std::vector< std::vector< cl_device_id > >& devices)
 {
-	unsigned int devNo = 0;
-	
 	for (unsigned int i = 0; i < platforms.size(); ++i)
 	{
 		std::cout << "OpenCL platform [ " << i << " ]:" << std::endl;
@@ -223,9 +221,8 @@ void prettyPrintCLPlatforms(std::vector< cl_platform_id >& platforms,
 
 		for (unsigned int n = 0; n < devices[i].size(); ++n)
 		{
-			std::cout << "OpenCL platform [ " << i << " ], device [ " << devNo << " ]:" << std::endl;
+			std::cout << "OpenCL platform [ " << i << " ], device [ " << n << " ]:" << std::endl;
 			prettyPrintDeviceInfo((devices[i])[n]);
-			devNo++;
 		}
 	}
 
diff --git a/src/tests/test_constants.h b/src/tests/test_constants.h
index bf94606..b281da4 100644
--- a/src/tests/test_constants.h
+++ b/src/tests/test_constants.h
@@ -62,7 +62,6 @@ const double magnitude_lower_limit = 1.0E-100;
 extern float tolerance;
 
 extern cl_device_type g_device_type;
-//extern cl_uint device_gpu_list;
 extern cl_int g_device_id;
 extern cl_int g_platform_id;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clfft.git



More information about the debian-science-commits mailing list