|
@@ -1,6 +1,6 @@
|
|
|
/* StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
|
*
|
|
|
- * Copyright (C) 2010-2017 Université de Bordeaux
|
|
|
+ * Copyright (C) 2010-2018 Université de Bordeaux
|
|
|
* Copyright (C) 2011,2012,2016 Inria
|
|
|
* Copyright (C) 2010-2018 CNRS
|
|
|
*
|
|
@@ -70,15 +70,6 @@ int _starpu_opencl_locate_file(const char *source_file_name, char **located_file
|
|
|
|
|
|
if (ret == EXIT_FAILURE)
|
|
|
{
|
|
|
- _STARPU_CALLOC(*located_file_name, 1, strlen(STARPU_SRC_DIR)+1+strlen(source_file_name)+1);
|
|
|
- snprintf(*located_file_name, strlen(STARPU_SRC_DIR)+1+strlen(source_file_name)+1, "%s/%s", STARPU_SRC_DIR, source_file_name);
|
|
|
- _STARPU_DEBUG("Trying to locate <%s>\n", *located_file_name);
|
|
|
- if (access(*located_file_name, R_OK) == 0)
|
|
|
- ret = EXIT_SUCCESS;
|
|
|
- }
|
|
|
-
|
|
|
- if (ret == EXIT_FAILURE)
|
|
|
- {
|
|
|
_STARPU_CALLOC(*located_file_name, 1, strlen(_STARPU_STRINGIFY(STARPU_OPENCL_DATADIR))+1+strlen(source_file_name)+1);
|
|
|
snprintf(*located_file_name, strlen(_STARPU_STRINGIFY(STARPU_OPENCL_DATADIR))+1+strlen(source_file_name)+1, "%s/%s", _STARPU_STRINGIFY(STARPU_OPENCL_DATADIR), source_file_name);
|
|
|
_STARPU_DEBUG("Trying to locate <%s>\n", *located_file_name);
|