Top "Openmp" questions

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

How to get the type of a variable in C code?

Is there any way that I can discover the type of a variable automatically in C, either through some mechanism …

c gcc types openmp typeof
C++ OpenMP Parallel For Loop - Alternatives to std::vector

Based on this thread, OpenMP and STL vector, which data structures are good alternatives for a shared std::vector in …

c++ openmp std
brew install clang-omp not working

I need to compile a C++ code with OpenMP on my Mac. Unfortunately the default version of clang installed on …

clang openmp homebrew osx-elcapitan
Difference between num_threads vs. omp_set_num_threads vs OMP_NUM_THREADS

I am quite confused about the ways to specify the number of threads in parallel part of a code. I …

parallel-processing openmp
Parallel OpenMP loop with break statement

I know that you cannot have a break statement for an OpenMP loop, but I was wondering if there is …

c++ multithreading loops openmp
Why Segmentation fault is happening in this openmp code?

main program: program main use omp_lib use my_module implicit none integer, parameter :: nmax = 202000 real(8) :: e_in(nmax) = 0.D0 …

fortran openmp
Parallel for vs omp simd: when to use each?

OpenMP 4.0 introduces a new construct called "omp simd". What is the benefit of using this construct over the old "parallel …

c++ c performance openmp simd
MPI vs openMP for a shared memory

Lets say there is a computer with 4 CPUs each having 2 cores, so totally 8 cores. With my limited understanding I think …

mpi openmp shared-memory
Can I access the elements in a c++ std::map by an integer index?

I have a map of elements that I would like to iterate through. Of course, the standard way to do …

c++ dictionary iterator openmp stdmap
How does the omp ordered clause work?

vector<int> v; #pragma omp parallel for ordered schedule(dynamic, anyChunkSizeGreaterThan1) for (int i = 0; i < n; ++i){ ... ... ... #…

c++ parallel-processing openmp