OPENMP

new topic     » topic index » view thread      » older message » newer message

Matt: I think Euphoria would benefit from the use of OPENMP, considering the fact that most processors these days support parallelism.

http://openmp.org/wp/about-openmp/
"Mission
The OpenMP Application Program Interface (API) supports multi-platform shared-memory parallel programming in C/C++ and Fortran on all architectures, including Unix platforms and Windows NT platforms. Jointly defined by a group of major computer hardware and software vendors, OpenMP is a portable, scalable model that gives shared-memory parallel programmers a simple and flexible interface for developing parallel applications for platforms ranging from the desktop to the supercomputer."

http://openmp.org/wp/openmp-compilers/
"Compiler: gcc
Compile with -fopenmp
Free and open source - Linux, Solaris, AIX, MacOSX, Windows
OpenMP 3.1 is supported since GCC 4.7"

» GCC OpenMP Wiki: http://gcc.gnu.org/wiki/openmp

» GCC’s OpenMP Manual http://gcc.gnu.org/onlinedocs/libgomp/

"OpenMP offers a simple way of exploiting parallelism without interfering with algorithm design; an OpenMP program compiles and operates correctly in both parallel and serial execution environments. Using OpenMP's directive-based parallelism also simplifies the act of converting existing serial code to efficient parallel code."

I addressed this to Matt because he seems to have good grasp of C and if Euphoria compiles with GCC then implementation of OPENMMP would take about two days of coding and two weeks of testing at most.
There are many other Euphoria developers who also are equally able. Anybody whose mind can understand the "voids" of C language (my mind is completely void of it) can implement it easily.
Please, please don't interrupt it with requests for other "goodies".
If somebody goes ahead with it let him/her finish it and then ask for add-ons if absolutely needed.

Apparently there is a Clang implementation of OPENMMP as well.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu