Преглед изворни кода

perfmodel: add a / to directory name (in case the perf model dir does not end with one)

Nathalie Furmento пре 14 година
родитељ
комит
ca4cfdb49f
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/core/perfmodel/perfmodel.c

+ 3 - 3
src/core/perfmodel/perfmodel.c

@@ -218,19 +218,19 @@ void _starpu_get_perf_model_dir(char *path, size_t maxlen)
 void _starpu_get_perf_model_dir_codelets(char *path, size_t maxlen)
 {
 	_starpu_get_perf_model_dir(path, maxlen);
-	strncat(path, "codelets/", maxlen);
+	strncat(path, "/codelets/", maxlen);
 }
 
 void _starpu_get_perf_model_dir_bus(char *path, size_t maxlen)
 {
 	_starpu_get_perf_model_dir(path, maxlen);
-	strncat(path, "bus/", maxlen);
+	strncat(path, "/bus/", maxlen);
 }
 
 void _starpu_get_perf_model_dir_debug(char *path, size_t maxlen)
 {
 	_starpu_get_perf_model_dir(path, maxlen);
-	strncat(path, "debug/", maxlen);
+	strncat(path, "/debug/", maxlen);
 }
 
 void _starpu_create_sampling_directory_if_needed(void)