|
@@ -1030,7 +1030,7 @@ static int load_bus_latency_file_content(void)
|
|
_starpu_drop_comments(f);
|
|
_starpu_drop_comments(f);
|
|
for (dst = 0; dst < STARPU_MAXNODES; dst++)
|
|
for (dst = 0; dst < STARPU_MAXNODES; dst++)
|
|
{
|
|
{
|
|
- n = _starpu_read_double(f, "%lf", &latency);
|
|
|
|
|
|
+ n = _starpu_read_double(f, "%le", &latency);
|
|
if (n != 1)
|
|
if (n != 1)
|
|
{
|
|
{
|
|
_STARPU_DISP("Error while reading latency file <%s>. Expected a number\n", path);
|
|
_STARPU_DISP("Error while reading latency file <%s>. Expected a number\n", path);
|
|
@@ -1069,7 +1069,7 @@ static int load_bus_latency_file_content(void)
|
|
break;
|
|
break;
|
|
ungetc(n, f);
|
|
ungetc(n, f);
|
|
|
|
|
|
- n = _starpu_read_double(f, "%lf", &latency);
|
|
|
|
|
|
+ n = _starpu_read_double(f, "%le", &latency);
|
|
if (n && !isnan(latency))
|
|
if (n && !isnan(latency))
|
|
{
|
|
{
|
|
_STARPU_DISP("Too many nodes in latency file %s for this configuration (%d)\n", path, STARPU_MAXNODES);
|
|
_STARPU_DISP("Too many nodes in latency file %s for this configuration (%d)\n", path, STARPU_MAXNODES);
|
|
@@ -1179,7 +1179,7 @@ static void write_bus_latency_file_content(void)
|
|
|
|
|
|
if (dst)
|
|
if (dst)
|
|
fputc('\t', f);
|
|
fputc('\t', f);
|
|
- fprintf(f, "%lf", latency);
|
|
|
|
|
|
+ _starpu_write_double(f, "%e", latency);
|
|
}
|
|
}
|
|
|
|
|
|
fprintf(f, "\n");
|
|
fprintf(f, "\n");
|
|
@@ -1252,7 +1252,7 @@ static int load_bus_bandwidth_file_content(void)
|
|
_starpu_drop_comments(f);
|
|
_starpu_drop_comments(f);
|
|
for (dst = 0; dst < STARPU_MAXNODES; dst++)
|
|
for (dst = 0; dst < STARPU_MAXNODES; dst++)
|
|
{
|
|
{
|
|
- n = _starpu_read_double(f, "%lf", &bandwidth);
|
|
|
|
|
|
+ n = _starpu_read_double(f, "%le", &bandwidth);
|
|
if (n != 1)
|
|
if (n != 1)
|
|
{
|
|
{
|
|
_STARPU_DISP("Error while reading bandwidth file <%s>. Expected a number\n", path);
|
|
_STARPU_DISP("Error while reading bandwidth file <%s>. Expected a number\n", path);
|
|
@@ -1291,7 +1291,7 @@ static int load_bus_bandwidth_file_content(void)
|
|
break;
|
|
break;
|
|
ungetc(n, f);
|
|
ungetc(n, f);
|
|
|
|
|
|
- n = _starpu_read_double(f, "%lf", &bandwidth);
|
|
|
|
|
|
+ n = _starpu_read_double(f, "%le", &bandwidth);
|
|
if (n && !isnan(bandwidth))
|
|
if (n && !isnan(bandwidth))
|
|
{
|
|
{
|
|
_STARPU_DISP("Too many nodes in bandwidth file %s for this configuration (%d)\n", path, STARPU_MAXNODES);
|
|
_STARPU_DISP("Too many nodes in bandwidth file %s for this configuration (%d)\n", path, STARPU_MAXNODES);
|
|
@@ -1408,7 +1408,7 @@ static void write_bus_bandwidth_file_content(void)
|
|
|
|
|
|
if (dst)
|
|
if (dst)
|
|
fputc('\t', f);
|
|
fputc('\t', f);
|
|
- fprintf(f, "%f", bandwidth);
|
|
|
|
|
|
+ _starpu_write_double(f, "%e", bandwidth);
|
|
}
|
|
}
|
|
|
|
|
|
fprintf(f, "\n");
|
|
fprintf(f, "\n");
|