Top "Openmp" questions

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

omp parallel vs. omp parallel for

What is the difference between these two? [A] #pragma omp parallel { #pragma omp for for(int i = 1; i < 100; ++i) { ... } } […

openmp
OpenMP set_num_threads() is not working

I am writing a parallel program using OpenMP in C++. I want to control the number of threads in the …

c++ multithreading numbers set openmp
Installing OpenMP on Mac OS X 10.11

How can I get OpenMP to run on Mac OSX 10.11, so that I can execute scripts via terminal? I have …

c gcc openmp
What's the difference between "static" and "dynamic" schedule in OpenMP?

I started working with OpenMP using C++. I have two questions: What is #pragma omp for schedule? What is the …

c++ multithreading openmp
OpenMP and Python

I have experience in coding OpenMP for Shared Memory machines (in both C and FORTRAN) to carry out simple tasks …

python parallel-processing openmp
What is the difference between atomic and critical in OpenMP?

What is the difference between atomic and critical in OpenMP? I can do this #pragma omp atomic g_qCount++; but …

openmp atomic critical-section
How to compile openmp using g++

I have a problem about the openmp compiling. Like the following code: #include <iostream> #include <pthread.h&…

c++ compilation g++ openmp
Undefined reference to `omp_get_max_threads_'

I'm getting the following errors trying to compile a project: (fortran, using gfortran) undefined reference to `omp_get_max_threads_…

gcc openmp gfortran
Reduction with OpenMP

I am trying to compute mean of a 2d matrix using openmp. This 2d matrix is actually an image. I …

openmp
How to check the version of OpenMP on Linux

I wonder how to check the version of OpenMP on a Linux remote machine? I don't know where it is …

linux gcc version openmp