Archive for the ‘C++’ Category
[Qt][GPU] C++ Application for dynamic transition images (QtConcurrent, QtOpenCL)
In this post, I will briefly introduce my first test of the qtopencl tool.
[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] 4 Exact String Matching Algorithms (in c)
I read (and wrote) 1 month ago some algorithms about pattern matching in text.
You can find plenty of this on the web anyway here is my code.
[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.
[C++] Sorting – Algorithms in C++ and their complexities
Here is the implementation of 10 sorting algorithms : Click to continue…
C++ – Qt – SingleApplication – Single App Instance
How to create an application that allows only one instance at a time. Here is my solution inspired from : http://www.qtcentre.org/wiki/index.php?title=SingleApplication
C++ – Mersenne Twister simple class – Random generator
Here is the source of the random generator based Mersenne Twister.
The source are coming from Jasper Bedaux 2003/1/1 (at http://www.bedaux.net/mtrand/).
Thanks to him!
I just took his source and make the things more easier.
Click to continue…
C++ – A custom String class – Basic, fast & portable
In this post I share a custom string class I developed 1 year ago.
This class does the minimum but it works well and it is very fast, I compare it with the std string.
Please, comments.
Click to continue…
C++ – QSleep, Qt sleep (with a QThread?)
How to make a portable sleep with Qt, or how to sleep when you are programming with Qt…
C++ – MPI an quick overview (which distribution is the best?)
MPI (for Message Passing Interface) is a specification to enable communication between process. It is a standard implemented by many libraries. Each one has its advantages and disadvantages. I will try in this post to give a quick MPI description and give some information about the different libraries.
