set gDeviceType in testharness.c (#597)

* set gDeviceType in testharness.c, also moved gTestRounding to imageHelpers.cpp & .h and removed duplicate code from host_atomics.cpp

* Cleaned up some redundant code

* Reversed the change in testharness.c
This commit is contained in:
jiabaxie
2020-02-20 05:39:55 -05:00
committed by GitHub
parent 89ec023110
commit 943ba04c0c
53 changed files with 53 additions and 341 deletions

View File

@@ -30,7 +30,6 @@ bool gDebugTrace;
bool gTestSmallImages;
bool gTestMaxImages;
bool gUseRamp;
bool gTestRounding;
bool gEnablePitch;
bool gTestMipmaps;
int gTypesToTest;
@@ -109,8 +108,6 @@ int main(int argc, const char *argv[])
cl_channel_type chanType;
cl_channel_order chanOrder;
checkDeviceTypeOverride( &gDeviceType );
const char ** argList = (const char **)calloc( argc, sizeof( char*) );
if( NULL == argList )