Révision 292 TrouNoir/trou_noir_OpenMP.c
trou_noir_OpenMP.c (revision 292) | ||
---|---|---|
20 | 20 |
|
21 | 21 |
Compilation sous gcc ( Compilateur GNU sous Linux ) : |
22 | 22 |
|
23 |
Version FP32 : gcc -fopenmp -O3 -ffast-math -DFP32 -o trou_noir_OMP_FP32 trou_noir_OpenMP.c -lm -lgomp
|
|
24 |
Version FP64 : gcc -fopenmp -O3 -ffast-math -DFP64 -o trou_noir_OMP_FP64 trou_noir_OpenMP.c -lm -lgomp
|
|
23 |
Version FP32 : gcc -fopenmp -Ofast -DFP32 -o trou_noir_OMP_FP32 trou_noir_OpenMP.c -lm -lgomp
|
|
24 |
Version FP64 : gcc -fopenmp -Ofast -DFP64 -o trou_noir_OMP_FP64 trou_noir_OpenMP.c -lm -lgomp
|
|
25 | 25 |
*/ |
26 | 26 |
|
27 | 27 |
#include <stdio.h> |
... | ... | |
38 | 38 |
#define TRACKPOINTS 2048 |
39 | 39 |
|
40 | 40 |
#if TYPE == FP64 |
41 |
#define MYFLOAT double |
|
42 |
#else |
|
41 | 43 |
#define MYFLOAT float |
42 |
#else |
|
43 |
#define MYFLOAT double |
|
44 | 44 |
#endif |
45 | 45 |
|
46 | 46 |
MYFLOAT atanp(MYFLOAT x,MYFLOAT y) |
Formats disponibles : Unified diff