Révision 248
Pi/C/OpenCL/PiOpenCL.c (revision 248) | ||
---|---|---|
23 | 23 |
#include <string.h> |
24 | 24 |
#include <CL/cl.h> |
25 | 25 |
#include <stdint.h> |
26 |
#include <math.h> |
|
26 | 27 |
#include <sys/time.h> |
27 | 28 |
|
28 | 29 |
#define TINT32 0 |
... | ... | |
415 | 416 |
|
416 | 417 |
double itops=(double)(ParallelRate*IterationsEach)/elapsed; |
417 | 418 |
|
418 |
printf("Inside/Total %ld %ld\nParallelRate %i\nElapsed Time %.2f\nItops %.0f\nPi estimation %f\n\n",inside,ParallelRate*IterationsEach,ParallelRate,elapsed,itops,(4.*(float)inside/((float)(ParallelRate)*(float)(IterationsEach))));
|
|
419 |
printf("Inside/Total %ld %ld\nParallelRate %i\nElapsed Time %.2f\nItops %.0f\nLogItops %.2f\nPi estimation %f\n\n",inside,ParallelRate*IterationsEach,ParallelRate,elapsed,itops,log10(itops),(4.*(float)inside/((float)(ParallelRate)*(float)(IterationsEach))));
|
|
419 | 420 |
} |
420 | 421 |
printf("\n\n"); |
421 | 422 |
|
Formats disponibles : Unified diff