|
@@ -582,7 +582,6 @@ static void benchmark_all_gpu_devices(void)
|
|
|
static void get_bus_path(const char *type, char *path, size_t maxlen)
|
|
|
{
|
|
|
_starpu_get_perf_model_dir_bus(path, maxlen);
|
|
|
- strncat(path, type, maxlen);
|
|
|
|
|
|
char hostname[32];
|
|
|
char *forced_hostname = getenv("STARPU_HOSTNAME");
|
|
@@ -590,8 +589,9 @@ static void get_bus_path(const char *type, char *path, size_t maxlen)
|
|
|
snprintf(hostname, sizeof(hostname), "%s", forced_hostname);
|
|
|
else
|
|
|
gethostname(hostname, sizeof(hostname));
|
|
|
- strncat(path, ".", maxlen);
|
|
|
strncat(path, hostname, maxlen);
|
|
|
+ strncat(path, ".", maxlen);
|
|
|
+ strncat(path, type, maxlen);
|
|
|
}
|
|
|
|
|
|
/*
|