Bladeren bron

OpenCL driver: build options for compiling opencl kernels no longer have a default value. Always use the value given by the user

Nathalie Furmento 14 jaren geleden
bovenliggende
commit
cce6154e09
1 gewijzigde bestanden met toevoegingen van 1 en 4 verwijderingen
  1. 1 4
      src/drivers/opencl/driver_opencl_utils.c

+ 1 - 4
src/drivers/opencl/driver_opencl_utils.c

@@ -151,10 +151,7 @@ int starpu_opencl_load_opencl_from_string(const char *opencl_program_source, str
                 if (!program || err != CL_SUCCESS) STARPU_OPENCL_REPORT_ERROR(err);
 
                 // Build the program executable
-		if (build_options)
-			err = clBuildProgram(program, 1, &device, build_options, NULL, NULL);
-		else
-			err = clBuildProgram(program, 1, &device, "-Werror -cl-mad-enable", NULL, NULL);
+                err = clBuildProgram(program, 1, &device, build_options, NULL, NULL);
                 if (err != CL_SUCCESS) {
                         size_t len;
                         static char buffer[4096];