소스 검색

src/common/fxt.c: make sure new name is properly set when calling starpu_set_profiling_id

Nathalie Furmento 12 년 전
부모
커밋
cb1497cf9a
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/common/fxt.c

+ 4 - 0
src/common/fxt.c

@@ -97,6 +97,10 @@ void starpu_set_profiling_id(int new_id)
 	_STARPU_DEBUG("Set id to <%d>\n", new_id);
 	_starpu_id = new_id;
 	_starpu_profile_set_tracefile(NULL);
+
+#ifdef HAVE_FUT_SET_FILENAME
+	fut_set_filename(_STARPU_PROF_FILE_USER);
+#endif
 }
 
 void starpu_fxt_start_profiling()