Révision 292 TrouNoir/trou_noir_OpenACC.c

trou_noir_OpenACC.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 -FP64 -o trou_noir_OMP_FP64 trou_noir_OpenMP.c -lm -lgomp
25

  
26 23
        Version FP32 : gcc -O3 -fopenacc  -ffast-math -DFP32 -foffload=nvptx-none -foffload="-O3 -misa=sm_35 -lm" -o trou_noir_openacc_FP32 trou_noir_OpenACC.c -lm
27 24
        Version FP64 : gcc -O3 -fopenacc  -ffast-math -DFP64 -foffload=nvptx-none -foffload="-O3 -misa=sm_35 -lm" -o trou_noir_openacc_FP64 trou_noir_OpenACC.c -lm
28 25

  
......
42 39
#define TRACKPOINTS 2048
43 40

  
44 41
#if TYPE == FP64
45
#define MYFLOAT float
46
#else
47 42
#define MYFLOAT double
43
#else
44
#define MYFLOAT float
48 45
#endif
49 46

  
50 47
#pragma acc routine

Formats disponibles : Unified diff