N3PDF / mcgpu

Proof of concept of GPU integration
0 stars 0 forks source link

OpenMP versions #4

Closed scarlehoff closed 5 years ago

scarlehoff commented 5 years ago

I just added a Fortran version in a folder with a makefile, to test

cd fortran-omp
make run

As testing integrand I am using a function from Lepage's original paper. My plan with this PR is to add the openmp versions in Fortran and C such that they can be compiled with gcc/icc/pgi (and, in the case of C, llvm).

Afterwards I'll use the same code to implement OpenAcc. That will be a direct comparison between the pragma-based parallelization engines and together with PR #3 that's add a quite comprehensive initial GPU-CPU comparison in different languages.

scarlehoff commented 5 years ago

The time of the fortran is comparable to numba. I am expecting the C to be exactly the same.

I would suggest merging the numba version to master has soon as you are happy with it @scarrazza and add the openmp (and opencl and so) as separate branchs