Top "Openmp" questions

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

OpenMP with "collapse()" for nested for-loops performs worse when without

This is my code: double res1[NNN]; #pragma omp parallel for collapse(3) schedule(dynamic) for (int i=0; i<NNN; …

performance openmp collapse
Using OpenMP 3/4 in Visual Studio 2017

Trying to use features from OpenMP 3 #pragma omp parallel for collapse(2) in Visual Studio 2017; i'm getting error c3005: 'collapse' unexpected …

c++ visual-studio-2017 openmp clang-cl
OpenMP: "libgomp: Thread creation failed: Resource temporarily unavailable" when code run as regular user

When I run the following example code: #include "stdio.h" #include <omp.h> int main(int argc, char *…

c linux gcc openmp libgomp
What does gcc without multilib mean?

I was trying to use the omh.h header file and I realized it was missing. I tried reinstalling gcc …

macos gcc g++ openmp
OpenMP and STL vector

I've got some code for which I'd like to use OpenMP in the following way: std::vector<int> …

c++ multithreading stl vector openmp
Parallel tasks get better performances with boost::thread than with ppl or OpenMP

I have a C++ program which could be parallelized. I'm using Visual Studio 2010, 32bit compilation. In short the structure of …

c++ openmp boost-thread ppl
OpenMP + linux - GOMP_4.0 not found

I've been trying to compile a program which uses OpenMP on suse with gcc --version 4.9.4 > g++ -std=c++11 -o …

linux multithreading openmp opensuse libgomp
Thread-safety of writing a std::vector vs plain array

I've read on Stackoverflow that none of the STL containers are thread-safe for writing. But what does that mean in …

c++ stl thread-safety openmp
In multithreaded C/C++, does malloc/new lock the heap when allocating memory

I'm curious as to whether there is a lock on memory allocation if two threads simultaneously request to allocate memory. …

c++ multithreading malloc openmp
numactl --physcpubind

I was using the numactl, with --physcpubind option. manual says: --physcpubind=cpus, -C cpus Only execute process on cpus. Etc... …

c linux openmp numa