Skip to main content

Questions tagged [openmp]

OpenMP is an API that supports shared memory multiprocessing in C, C++, and Fortran.

7 votes
1 answer
308 views

EDIT TL;DR Anyone who might consider using my code below in production and can afford to require C++-20 standard should rather use std::barrier as suggested by G. ...
user2233709's user avatar
4 votes
1 answer
169 views

This is a follow-up question for An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++. To apply pixel operation into an Image ...
JimmyHu's user avatar
  • 7,575
2 votes
0 answers
68 views

This is a follow-up question for An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++. I am trying to build the bridge to perform the conversion between the ...
JimmyHu's user avatar
  • 7,575
7 votes
1 answer
289 views

I have a PR implementing differential evolution. I'm a bit concerned about the implementation and would like some feedback: The class could be a free function. However, there are so many parameters, ...
user14717's user avatar
  • 775
1 vote
1 answer
75 views

I'm trying to optimize algorithm 1 in my following code. First double loop, I calculate points beforehand which will run only once. Then I have the first version of ...
Ja_cpp's user avatar
  • 433
0 votes
1 answer
283 views

I would like to parallelise with OpenMP a one-dimensional integral using the integrate() function implemented in the Boost library. I found a rather obscure ...
CafféSospeso's user avatar
3 votes
0 answers
92 views

I am trying to compute a matrix-matrix product of N stacked complex double N x N matrices. For simplicity, I assume N = 512. I have written code in C++ parallelized with OMP and using OpenBLAS for the ...
sqrt6's user avatar
  • 31
2 votes
3 answers
620 views

We wrote a code that parallelizes the divide phase of the mergesort algorithm. I.e. every recursive call is assigned to a thread but our teacher was disappointed because he said we should also ...
New2Math's user avatar
  • 121
5 votes
2 answers
4k views

I'm a C noob and I'm learning about concurrency using C. I came across an exercise in a book asking me to find the approximate value of Pi using the Monte Carlo technique with OpenMP. I came up with ...
emrepun's user avatar
  • 165
1 vote
1 answer
74 views

I'm trying to optimize the narrow phase of the contact detection in my code. I'm using OpenMP for multithreading. That is the starting code: ...
David's user avatar
  • 111
2 votes
1 answer
717 views

...
user avatar
4 votes
1 answer
136 views

Purpose of this program is to calculate the velocity of ng = nxnynz particles at the Lagrangian points from the values at regular grid nodes. How can i speed up this calculation? I hope to receive ...
Luc Nguyen's user avatar
3 votes
3 answers
344 views

My purpose is to calculate the energy spectrum of three-dimensional turbulent flow from three velocity components. The calculation is too expensive. Therefore, I hope the calculation time can be ...
Luc Nguyen's user avatar
4 votes
1 answer
217 views

I'm a newbie playing around with Fortran 90 and openmp and wrote the code below (a simple 2D heat transfer simulation) for testing purposes. So far I don't see any speedup by using openmp / parallel ...
HotDogCannon's user avatar
4 votes
1 answer
493 views

I wrote this simple code for evaluating the π using Monte Carlo method. This is the serial version: ...
Ilmionome456's user avatar

15 30 50 per page