Hi Grigori,
I'd like to put the patch here.
Best regards,
Mingjie
2009-12-15 Mingjie Xing <
joefo...@gmail.com>
* src-plat-dep/plugins/compilation/ccc-run-glob-flags-rnd-fixed/ccc-run-glob-flags-rnd-fixed.c:
src-plat-dep/plugins/compilation/ccc-run-glob-flags-rnd-uniform/ccc-run-glob-flags-rnd-uniform.c:
src-plat-dep/plugins/compilation/ccc-run-glob-flags-one-by-one/ccc-run-glob-flags-one-by-one.c:
src-plat-dep/plugins/compilation/ccc-run-glob-flags-one-off-rnd/ccc-run-glob-flags-one-off-rnd.c:
add fflush(stdout) before system()
Index: src-plat-dep/plugins/compilation/ccc-run-glob-flags-rnd-fixed/ccc-run-glob-flags-rnd-fixed.c
===================================================================
--- src-plat-dep/plugins/compilation/ccc-run-glob-flags-rnd-fixed/ccc-run-glob-flags-rnd-fixed.c
(revision 89)
+++ src-plat-dep/plugins/compilation/ccc-run-glob-flags-rnd-fixed/ccc-run-glob-flags-rnd-fixed.c
(working copy)
@@ -144,12 +144,14 @@ int main(int argc, char* argv[])
printf("Compiling with compiler %s and option %s\n", comp_name,
trim(str_opt));
sprintf(str2, _ccc_comp " %s \"%s\"", comp_name, trim(str_opt));
+ fflush(stdout);
system(str2);
printf(sep2 "\n");
printf("Running program with dataset %u, first time=%u\n", mds, first);
sprintf(str2, _ccc_run " %u %u", mds, first);
+ fflush(stdout);
system(str2);
istep++;
Index: src-plat-dep/plugins/compilation/ccc-run-glob-flags-rnd-uniform/ccc-run-glob-flags-rnd-uniform.c
===================================================================
--- src-plat-dep/plugins/compilation/ccc-run-glob-flags-rnd-uniform/ccc-run-glob-flags-rnd-uniform.c
(revision 89)
+++ src-plat-dep/plugins/compilation/ccc-run-glob-flags-rnd-uniform/ccc-run-glob-flags-rnd-uniform.c
(working copy)
@@ -143,12 +143,14 @@ int main(int argc, char* argv[])
printf("Compiling with compiler %s and option %s\n", comp_name,
trim(str_opt));
sprintf(str2, _ccc_comp " %s \"%s\"", comp_name, trim(str_opt));
+ fflush(stdout);
system(str2);
printf(sep2 "\n");
printf("Running program with dataset %u, first time=%u\n", mds, first);
sprintf(str2, _ccc_run " %u %u", mds, first);
+ fflush(stdout);
system(str2);
istep++;
Index: src-plat-dep/plugins/compilation/ccc-run-glob-flags-one-by-one/ccc-run-glob-flags-one-by-one.c
===================================================================
--- src-plat-dep/plugins/compilation/ccc-run-glob-flags-one-by-one/ccc-run-glob-flags-one-by-one.c
(revision 89)
+++ src-plat-dep/plugins/compilation/ccc-run-glob-flags-one-by-one/ccc-run-glob-flags-one-by-one.c
(working copy)
@@ -146,12 +146,14 @@ int main(int argc, char* argv[])
printf("Compiling with compiler %s and option %s\n", comp_name,
trim(str_opt));
sprintf(str2, _ccc_comp " %s \"%s\"", comp_name, trim(str_opt));
+ fflush(stdout);
system(str2);
printf(sep2 "\n");
printf("Running program with dataset %u, first time=%u\n", mds, first);
sprintf(str2, _ccc_run " %u %u", mds, first);
+ fflush(stdout);
system(str2);
istep++;
Index: src-plat-dep/plugins/compilation/ccc-run-glob-flags-one-off-rnd/ccc-run-glob-flags-one-off-rnd.c
===================================================================
--- src-plat-dep/plugins/compilation/ccc-run-glob-flags-one-off-rnd/ccc-run-glob-flags-one-off-rnd.c
(revision 89)
+++ src-plat-dep/plugins/compilation/ccc-run-glob-flags-one-off-rnd/ccc-run-glob-flags-one-off-rnd.c
(working copy)
@@ -160,9 +160,11 @@ int main(int argc, char* argv[])
if (change>=0) printf("Removing option %s ...\n\n",
&opts[iopts[change]]);
}
+ fflush(stdout);
system(_del " " _fout);
printf("Compiling with compiler %s and option %s\n\n", comp_name,
trim(str_opt));
sprintf(str2, _ccc_comp " %s \"%s\"", comp_name, trim(str_opt));
+ fflush(stdout);
system(str2);
if (fileExist(_fobjmd5)==1)
@@ -206,6 +208,7 @@ int main(int argc, char* argv[])
printf("Running program with dataset %u, first time=%u\n", mds, first);
sprintf(str2, _ccc_run " %u %u", mds, first);
+ fflush(stdout);
system(str2);
//Read time
2009/12/14 Grigori Fursin <
gfu...@gmail.com>:
> You received this message because you are subscribed to the Google Groups "ctuning-discussions" group.
> To unsubscribe from this group, send email to
ctuning-discuss...@googlegroups.com.