 	std::stringstream ss;
 	if( try_creating_unit_string( ss, 1, x, 1073741824, "Gb" ) ) return ss.str();
 	if( try_creating_unit_string( ss, 1, x, 1048576   , "Mb" ) ) return ss.str();
-	if( try_creating_unit_string( ss, 1, x, 1024      , "Kb" ) ) return ss.str();
-	if( try_creating_unit_string( ss, 1, x, 1073741824, "Gb" ) ) return ss.str();
+	if( try_creating_unit_string( ss, 1, x, 1024      , "kb" ) ) return ss.str();
 	ss << x << "b";
 	return ss.str();
 }


}

unsigned exp10( unsigned n )
{
	unsigned y = 1;
	for( unsigned i = 0; i < n; ++i ) y *= 10;
	return y;
}

unsigned log2( unsigned n )
{
	unsigned y = 1;
	for( unsigned i = 0; i < n; ++i ) y *= 2;
	return y;
}

bool try_creating_unit_string( std::ostream& out, unsigned digits, unsigned long x, unsigned long per_unit, const std::string& unitSymbol = std::string() )
{
	unsigned long units = x / per_unit;

output << "maxSurface2DLayered=" << deviceProperties.maxSurface2DLayered[0] << "," << deviceProperties.maxSurface2DLayered[1] << "," << deviceProperties.maxSurface2DLayered[2] << std::endl;
output << "maxSurfaceCubemap=" << deviceProperties.maxSurfaceCubemap << std::endl;
output << "maxSurfaceCubemapLayered=" << deviceProperties.maxSurfaceCubemapLayered[0] << "," << deviceProperties.maxSurfaceCubemapLayered[1] << std::endl;
*/

