Remove unused code in kernel_image_methods (#1048)

These declarations either aren't used or aren't needed, as testBase.h
already declares them.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
This commit is contained in:
Radek Szymanski
2020-11-20 15:06:32 +01:00
committed by GitHub
parent f22e3a31d0
commit bf3d3fef75
7 changed files with 6 additions and 39 deletions

View File

@@ -13,23 +13,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
#include "../harness/compat.h"
#include "../harness/parseParameters.h"
#include <stdio.h>
#include <string.h>
#if !defined(_WIN32)
#include <unistd.h>
#include <sys/time.h>
#endif
#include "../testBase.h"
#include "../harness/compat.h"
#include "../harness/parseParameters.h"
bool gDebugTrace;
bool gTestSmallImages;
bool gTestMaxImages;
int gTypesToTest;
bool gDeviceLt20 = false;
cl_channel_type gChannelTypeToUse = (cl_channel_type)-1;
@@ -39,8 +32,6 @@ extern int test_image_set( cl_device_id device, cl_context context, cl_command_q
static void printUsage( const char *execName );
#define MAX_ALLOWED_STD_DEVIATION_IN_MB 8.0
int test_1D(cl_device_id device, cl_context context, cl_command_queue queue, int num_elements)
{
return test_image_set( device, context, queue, CL_MEM_OBJECT_IMAGE1D );

View File

@@ -15,10 +15,7 @@
//
#include "../testBase.h"
#define MAX_ERR 0.005f
#define MAX_HALF_LINEAR_ERR 0.3f
extern bool gDebugTrace, gTestSmallImages, gTestMaxImages, gDeviceLt20;
extern bool gDeviceLt20;
struct image_kernel_data
{

View File

@@ -15,10 +15,7 @@
//
#include "../testBase.h"
#define MAX_ERR 0.005f
#define MAX_HALF_LINEAR_ERR 0.3f
extern bool gDebugTrace, gTestSmallImages, gTestMaxImages, gDeviceLt20;
extern bool gDeviceLt20;
struct image_kernel_data
{

View File

@@ -15,10 +15,7 @@
//
#include "../testBase.h"
#define MAX_ERR 0.005f
#define MAX_HALF_LINEAR_ERR 0.3f
extern bool gDebugTrace, gTestSmallImages, gTestMaxImages, gDeviceLt20;
extern bool gDeviceLt20;
struct image_kernel_data
{

View File

@@ -15,10 +15,7 @@
//
#include "../testBase.h"
#define MAX_ERR 0.005f
#define MAX_HALF_LINEAR_ERR 0.3f
extern bool gDebugTrace, gTestSmallImages, gTestMaxImages, gDeviceLt20;
extern bool gDeviceLt20;
struct image_kernel_data
{

View File

@@ -15,11 +15,6 @@
//
#include "../testBase.h"
#define MAX_ERR 0.005f
#define MAX_HALF_LINEAR_ERR 0.3f
extern bool gDebugTrace, gTestSmallImages, gTestMaxImages, gDeviceLt20;
extern int test_get_image_info_single( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MTdata d );
int test_get_image_info_3D( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format )

View File

@@ -16,15 +16,8 @@
#include "../testBase.h"
#include "../common.h"
extern cl_filter_mode gFilterModeToUse;
extern cl_addressing_mode gAddressModeToUse;
extern int gTypesToTest;
extern int gNormalizedModeToUse;
extern cl_channel_type gChannelTypeToUse;
extern bool gDeviceLt20;
extern bool gDebugTrace;
extern int test_get_image_info_1D( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format );
extern int test_get_image_info_2D( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format );
extern int test_get_image_info_3D( cl_device_id device, cl_context context, cl_command_queue queue, cl_image_format *format );