Bladeren bron

drop dead code

Samuel Thibault 9 jaren geleden
bovenliggende
commit
2832f2beb7
1 gewijzigde bestanden met toevoegingen van 2 en 4 verwijderingen
  1. 2 4
      src/drivers/opencl/driver_opencl_utils.c

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

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010, 2011, 2012, 2014, 2015  CNRS
- * Copyright (C) 2010-2014  Université de Bordeaux
+ * Copyright (C) 2010-2015  Université de Bordeaux
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -373,10 +373,8 @@ int _starpu_opencl_compile_or_load_opencl_from_file(const char *source_file_name
 
 	if (!strcmp(located_dir_name, ""))
 		strcpy(new_build_options, build_options);
-	else if (build_options)
-		sprintf(new_build_options, "-I %s %s", located_dir_name, build_options);
 	else
-		sprintf(new_build_options, "-I %s", located_dir_name);
+		sprintf(new_build_options, "-I %s %s", located_dir_name, build_options);
 	_STARPU_DEBUG("Build options: <%s>\n", new_build_options);
 
 	return _starpu_opencl_compile_or_load_opencl_from_string(opencl_program_source, new_build_options, opencl_programs, source_file_name);