Skip to main content
Code Review

Questions tagged [openmp]

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

Filter by
Sorted by
Tagged with
7 votes
1 answer
286 views

Implement a "split" synchronization barrier for C++ with OpenMP

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. ...
4 votes
1 answer
161 views

apply_each_pixel and apply_each_pixel_openmp Template Functions Implementation for Image in C++

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 ...
2 votes
0 answers
49 views

Convert Image Class to OpenCV Mat Data Structure in C++

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,346
7 votes
1 answer
272 views

Differential Evolution

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, ...
1 vote
1 answer
60 views

Create subset of points cloud from a predefined ones following two conditions

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
269 views

Parallelise numerical integration with OpenMP in C++

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 ...
3 votes
0 answers
79 views

Accelerating this stacked matrix-matrix product in OpenCL

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 ...
1 vote
3 answers
588 views

Parallezing merge step and divide step in mergesort algorithm with OpenMP

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
  • 111
5 votes
2 answers
4k views

Calculating pi with Monte Carlo using OpenMP

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
58 views

Optimize narrow phase contact detection for phyiscs simulation code

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: ...
2 votes
1 answer
690 views

Prime numbers with array and OpenMP in C

...
user avatar
user232411
4 votes
1 answer
123 views

Kernel Interpolation C++

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
318 views

Calculation of Energy Spectrum using C++

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 ...
4 votes
1 answer
204 views

Fortran 90 / openmp heat transfer simulation optimization

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 ...
4 votes
1 answer
479 views

Evaluating π using Monte Carlo methods - Serial vs OMP

I wrote this simple code for evaluating the π using Monte Carlo method. This is the serial version: ...

15 30 50 per page
1
2 3 4

AltStyle によって変換されたページ (->オリジナル) /