Top "Openmp" questions

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

Specify OpenMP to GCC

For OpenMP, when my code is using the functions in its API (for example, omp_get_thread_num()) without using …

c gcc openmp
What are the differences between MPI and OpenMP?

I would like to know (in a few words) what are the main differences between OpenMP and MPI.

mpi openmp difference
Set number of threads using omp_set_num_threads() to 2, but omp_get_num_threads() returns 1

I have the following C/C++ code using OpenMP: int nProcessors=omp_get_max_threads(); if(argv[4]!=NULL){ printf("argv[4]: %…

c++ c parallel-processing openmp
<omp.h> library isn't found in the GCC version (4.2.1) in Mavericks

I have a problem with GCC. I want to update it to a new version, from the 4.2.1, to program with …

gcc openmp osx-mavericks
difference between omp critical and omp single

I am trying to understand the exact difference between #pragma omp critical and #pragma omp single in OpenMP: Microsoft definitions …

parallel-processing openmp
Error enabling openmp - "ld: library not found for -lgomp" and Clang errors

I'm trying to get openmp to run in my program on Mavericks, however when I try to compile using the …

c++ gcc clang openmp osx-mavericks
8 logical threads at 4 cores will at a maximum run 4 times faster in parallel?

I'm benchmarking software which executes 4x faster on Intel 2670QM then my serial version using all 8 of my 'logical' threads. …

multithreading openmp multicore hyperthreading
Understanding the collapse clause in openmp

I came across an OpenMP code that had the collapse clause, which was new to me. I'm trying to understand …

c openmp
Reducing on array in OpenMP

I am trying to parallelize the following program, but don't know how to reduce on an array. I know it …

c++ parallel-processing openmp reduction
OpenMP: Get total number of running threads

I need to know the total number of threads that my application has spawned via OpenMP. Unfortunately, the omp_get_…

c++ parallel-processing openmp