Posts Tagged ‘openmp’
[C++][Omp] OpenMP version _OPENMP directive
Sometime you may want to know what version of openmp you are using at compile time.
This is possible using the _OPENMP directive.
[C++][OpenMP] Custom barrier, a barrier for a group of threads
Openmp give a barrier for all threads.
Here is a class to perform a barrier with only a group of threads.
[C++][OpenMP] A shared memory quick sort openmp tasks (example, source code)
After a first shoot of quick sort on shared memory (to be able to create an mpi version, but that is not inplace)
I created a real shared memory version.
Be aware that these versions need the OpenMP task!
PS : I developed several quick sort (available on this blog), a sequential version, an openmp tasks version, a openmp not inplace version, an mpi version and a Qt concurent version.
[C++] A tcp/ip server using OpenMP (with Linux socket)
In this post I put the code of a small program I developed a week ago about an OpenMP server for linux socket.
So this server is using a thread pool and tasks. Also I wrote a minimalist client that uses select to have a non blocking IO and read access.
Click to continue…
[C++][MPI] Parallel Quick Sort (multi-procs)
After an OpenMP quick sort implementation, here is the mpi version.
PS : I developed several quick sort (available on this blog), a sequential version, an openmp tasks version, a openmp not inplace version, an mpi version and a Qt concurent version.
[C++][OpenMP] Parallel Quick Sort, source code
In this post I will give a code of a parallel quick sort.
This sort can be improve because we are in shared memory architecture. But, I build it to create a MPI version (source code also available on the blog). And as said “Introduction to Parallel Computing” (A.G. A.G. G.K. V.K.) I need a thread version before a MPI one.
Another (an little faster version) is available here. This second version use a completely different algorithm!!!
PS : I developed several quick sort (available on this blog), a sequential version, an openmp tasks version, a openmp not inplace version, an mpi version and a Qt concurent version.
[Openmp][MPI] Profiling hybrid openmp-mpi application with eztrace and vite
In this post I present quickly an example to profile openmp (or pthread) and mpi application.
[Openmp] for schedule static or dynamic
Of course there is a difference between static and dynamic scheduling (every one know that) but if you want to see how it can make a difference look at the example above.
[C/C++] OpenMP vs PThread – openmp or posix thread ?
A popular question. Which one to use, which one is faster. Well, I do not really know but this post may help you to make your choice.
