update chiSquare test functions to check the created kernel before execution
This commit is contained in:
@@ -292,6 +292,9 @@ int runTest(const char *api_name, const char *device_name, bool autotune, bool m
|
||||
//set autotuning on/off
|
||||
if (autotune)
|
||||
dksbase.setAutoTuningOn();
|
||||
|
||||
//check kernel
|
||||
dksbase.checkMuSRKernels(1);
|
||||
|
||||
//tmp values to store results and tmp values for time steps and start time
|
||||
double result_gpu = 0.0;
|
||||
@@ -373,11 +376,11 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
}
|
||||
|
||||
int numPlatforms = 2;
|
||||
int numPlatforms = 3;
|
||||
const char *api[] = {"Cuda","OpenCL","OpenCL","OpenCL","OpenMP"};
|
||||
const char *device[] = {"-gpu","-gpu","-cpu","-mic","-mic"};
|
||||
|
||||
for (int i = 0; i < numPlatforms; i++) {
|
||||
for (int i = 2; i < numPlatforms; i++) {
|
||||
runTest(api[i], device[i], autotune, mlh, asym);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user