Browse Source

OpenCL driver: get the correct number of OpenCL workers

Nathalie Furmento 13 years ago
parent
commit
011cf9daa0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/drivers/opencl/driver_opencl_utils.c

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

@@ -180,7 +180,7 @@ int starpu_opencl_load_opencl_from_file(const char *source_file_name, struct sta
         char located_file_name[1024];
 
 	// Do not try to load and compile the file if there is no devices
-	nb_devices = _starpu_opencl_get_device_count();
+	nb_devices = starpu_opencl_worker_get_count();
 	if (nb_devices == 0) return EXIT_SUCCESS;
 
         // Locate source file