Top "Openmp" questions

OpenMP is a cross-platform multi-threading API which allows fine-grained task parallelization and synchronization using special compiler directives.

OpenMP C++ Matrix Multiplication run slower in parallel

I'm learning the basics of paralel execution of for loop using OpenMP. Sadly, my paralel program runs 10x slower than …

c++ openmp matrix-multiplication
How to generate random numbers in parallel?

I want to generate pseudorandom numbers in parallel using openMP, something like this: int i; #pragma omp parallel for for (…

c random openmp
How to link during Matlab's MEX compilation

I've written a program of the following form: #include "stuff_I_need.h" int main(){ construct_array(); // uses OpenMP pragma's …

matlab openmp linker-errors mex
Is it possible to do a reduction on an array with openmp?

Does OpenMP natively support reduction of a variable that represents an array? This would work something like the following... float* …

c++ arrays openmp reduction
Difference between linking OpenMP with -fopenmp and -lgomp

I've been struggling a weird problem the last few days. We create some libraries using GCC 4.8 which link some of …

c++ openmp static-linking dlopen
CMake cannot find OpenMP

I am trying to compile with OpenMP. My CMakeLists.txt contains the line find_package(OpenMP REQUIRED) and CMake errors …

cmake openmp
Parallelization: pthreads or OpenMP?

Most people in scientific computing use OpenMP as a quasi-standard when it comes to shared memory parallelization. Is there any …

multithreading optimization pthreads openmp
Ignore OpenMP on machine that does not have it

I have a C++ program using OpenMP, which will run on several machines that may have or not have OpenMP …

c++ c openmp ignore
parallel quicksort in c

After a lot of searching for an implementation of parallel quicksort in c, I'm about to dive in and code …

c parallel-processing openmp quicksort
'omp.h' file not found when compiling using clang

I'm trying to set up an OpenMP project using clang( 3.7.0) on my laptop running linux mint. Now I've read that …

c++ linux openmp clang++