Skip to content

Commit

Permalink
src/drivers/opencl: add extra information in debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nfurmento committed Mar 13, 2024
1 parent 0828cf9 commit 5f2f26e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/drivers/opencl/driver_opencl_utils.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* StarPU --- Runtime system for heterogeneous multicore architectures.
*
* Copyright (C) 2010-2022 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
* Copyright (C) 2010-2024 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
*
* 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
Expand Down Expand Up @@ -61,7 +61,7 @@ int _starpu_opencl_locate_file(const char *source_file_name, char **located_file
{
_STARPU_CALLOC(*located_file_name, 1, strlen(_starpu_opencl_program_dir)+1+strlen(source_file_name)+1);
snprintf(*located_file_name, strlen(_starpu_opencl_program_dir)+1+strlen(source_file_name)+1, "%s/%s", _starpu_opencl_program_dir, source_file_name);
_STARPU_DEBUG("Trying to locate <%s>\n", *located_file_name);
_STARPU_DEBUG("Trying to locate with _starpu_opencl_program_dir <%s>\n", *located_file_name);
if (access(*located_file_name, R_OK) == 0)
ret = EXIT_SUCCESS;
}
Expand All @@ -71,7 +71,7 @@ int _starpu_opencl_locate_file(const char *source_file_name, char **located_file
{
_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);
_STARPU_DEBUG("Trying to locate with STARPU_SRC_DIR <%s>\n", *located_file_name);
if (access(*located_file_name, R_OK) == 0)
ret = EXIT_SUCCESS;
}
Expand All @@ -81,7 +81,7 @@ int _starpu_opencl_locate_file(const char *source_file_name, char **located_file
{
_STARPU_CALLOC(*located_file_name, 1, strlen(STARPU_OPENCL_DATADIR)+1+strlen(source_file_name)+1);
snprintf(*located_file_name, strlen(STARPU_OPENCL_DATADIR)+1+strlen(source_file_name)+1, "%s/%s", STARPU_OPENCL_DATADIR, source_file_name);
_STARPU_DEBUG("Trying to locate <%s>\n", *located_file_name);
_STARPU_DEBUG("Trying to locate with STARPU_OPENCL_DATADIR <%s>\n", *located_file_name);
if (access(*located_file_name, R_OK) == 0)
ret = EXIT_SUCCESS;
}
Expand Down

0 comments on commit 5f2f26e

Please sign in to comment.