"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "FFT/tstfft.c" between
hpcc-1.5.0b.tar.gz and hpcc-1.5.0.tar.gz

About: HPCC (HPC Challenge) benchmark consists of basically 7 tests: HPL, STREAM, RandomAccess, PTRANS, FFTE, DGEMM and b_eff Latency/Bandwidth.

tstfft.c  (hpcc-1.5.0b):tstfft.c  (hpcc-1.5.0)
skipping to change at line 121 skipping to change at line 121
*Un = n; *Un = n;
*Ufailure = failure; *Ufailure = failure;
return 0; return 0;
} }
int int
HPCC_TestFFT(HPCC_Params *params, int doIO, double *UGflops, int *Un, int *Ufail ure) { HPCC_TestFFT(HPCC_Params *params, int doIO, double *UGflops, int *Un, int *Ufail ure) {
int rv, n, failure = 1; int rv, n, failure = 1;
double Gflops; double Gflops;
FILE *outFile; FILE *outFile = NULL;
if (doIO) { if (doIO) {
outFile = fopen( params->outFname, "a" ); outFile = fopen( params->outFname, "a" );
if (! outFile) { if (! outFile) {
outFile = stderr; outFile = stderr;
fprintf( outFile, "Cannot open output file.\n" ); fprintf( outFile, "Cannot open output file.\n" );
return 1; return 1;
} }
} else {
outFile = fopen( "/dev/null", "w" ); /* special filename Unix file systems *
/
if (! outFile) {
outFile = fopen( "nul", "w"); /* special filename on Windows, produces no
output */
}
} }
n = 0; n = 0;
Gflops = -1.0; Gflops = -1.0;
rv = TestFFT1( params, doIO, outFile, &Gflops, &n, &failure ); rv = TestFFT1( params, doIO, outFile, &Gflops, &n, &failure );
if (doIO) { if (doIO) {
fflush( outFile ); fflush( outFile );
fclose( outFile );
} }
if (outFile)
fclose( outFile );
if (UGflops) *UGflops = Gflops; if (UGflops) *UGflops = Gflops;
if (Un) *Un = n; if (Un) *Un = n;
if (Ufailure) *Ufailure = failure; if (Ufailure) *Ufailure = failure;
return rv; return rv;
} }
 End of changes. 4 change blocks. 
2 lines changed or deleted 11 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS