openmp Questions

4

Solved

I want to parallelize this code getting the best performance. "histogram" stores number of appareances of a certain colour (there are 10 different colours, so the size of histogram is 10). "img" is...
Chenopod asked 14/2, 2014 at 11:12

3

Solved

I am currently trying to deploy a project using openmp. I have the flag '-fopenmp' on Travis. How could I fix that ? In local I just brew install libopenmp which solved the issue. But not on Trav...
Dorsal asked 31/1, 2020 at 13:48

6

Solved

I'm struggling in compiling a project using OpenMP on Mac OSX. The error is: CMake Error at /usr/local/Cellar/cmake/3.10.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message): C...
Tabber asked 16/2, 2018 at 11:5

0

I'm using gcov for unit testing coverage analysis in my C++ project, which includes regions parallelized using OpenMP. Upon reviewing the gcov results, I've noticed that the lines parallelized with...
Amaurosis asked 24/4, 2024 at 14:55

2

I'm trying to compile a simple app to test a few libraries I might be using in the future. Because of some problems I had with msvc I tried Clang, which made a strange error I got disappear. The p...
Reeder asked 25/7, 2019 at 20:12

5

Solved

I wish to understand what do they mean here. Why would this program "hang"? From https://bisqwit.iki.fi/story/howto/openmp/ OpenMP and fork() It is worth mentioning that using OpenMP in a pro...
Hypsometer asked 1/3, 2018 at 12:4

7

Solved

I'm new in C and have some problems compiling my code in OS X. I code Java a lot both in Eclipse and use terminal to compile my code. However now I'm learning openMP and have troubles with it. Fi...
Linders asked 23/9, 2014 at 8:23

9

I wonder how to check the version of OpenMP on a Linux remote machine? I don't know where it is installed either.
Mephistopheles asked 20/8, 2009 at 6:44

3

Solved

$ gcc 12.c -fopenmp 12.c:9:9: fatal error: 'omp.h' file not found #include<omp.h> ^ 1 error generated. While compiling openMP programs I get the above error. I am using OS X Yosemite. I fi...
Avon asked 15/3, 2015 at 5:8

1

I have the following loop to calculate basic summary statistics (mean, standard deviation, minimum and maximum) in C++, skipping missing values (x is a double vector): int k = 0; long double sum = ...
Intoxicated asked 22/9, 2023 at 19:54

4

Solved

I need to know the total number of threads that my application has spawned via OpenMP. Unfortunately, the omp_get_num_threads() function does not work here since it only yields the number of thread...
Inexorable asked 16/1, 2011 at 16:19

1

I need to run a multi-threaded matrix-vector multiplication every 500 microseconds. The matrix is the same, the vector changes every time. I use Intels sgemv() in the MKL on a 64-core AMD CPU. If I...
Professional asked 23/2, 2023 at 18:7

4

Solved

I am currently studying to become a computer engineer and I need to work with OpenMP. After some research, I'm still having trouble installing it (#include <omp.h> is still not recognized). I...
Monomial asked 10/2, 2022 at 8:27

4

I tried to write this code float* theArray; // the array to find the minimum value int index, i; float thisValue, min; index = 0; min = theArray[0]; #pragma omp parallel for reduction(min:min_dis...
Miosis asked 1/2, 2015 at 1:43

5

I am using the newest CMake (3.9.3) from Homebrew along with LLVM 5.0.0 also from Brew, because Clang here has OpenMP support. This worked in CMake 3.8.2 with LLVM 5. In my CMakeLists.txt I hav...
Beshore asked 25/9, 2017 at 21:45

2

OpenMP is supported in GCC which is cross-platform... but does that mean OpenMP is supported on all target platforms? Specifically, iOS and Android**... as phones/tablets move to quad-core, not usi...
Scully asked 28/2, 2012 at 9:31

4

Solved

It it possible to use OpenMP pragmas in CUDA source files (not in kernel code)? I will combine GPU and CPU computation. But the nvcc compiler fails with "cannot find Unknown option 'openmp'&qu...
Cavour asked 9/7, 2010 at 10:9

3

I am getting this warning during compilation of a C code with OpenMP directives on Linux: warning: ignoring #pragma omp parallel Gcc version is 4.4. Is it only a warning I should not care abou...
Execrate asked 9/4, 2009 at 12:3

1

Solved

We already know that local variables are automatically private. int i,j; #pragma omp parallel for private(i,j) for(i = 0; i < n; i++) { for(j = 0; j < n; j++) { //do something } } it is e...
Giddens asked 23/10, 2022 at 14:54

1

Is it legal/valid to access program global variables from an internal subroutine called from an OpenMP task? ifort 2021.7.0 20220726 doesn't report an error, but appears to produce random results d...
Wavawave asked 30/9, 2022 at 22:13

5

Solved

I'm creating a multi-threaded application in C using Linux. I'm unsure whether I should use the POSIX thread API or the OpenMP API. What are the pros & cons of using either? Edit: Could som...
Croupier asked 16/10, 2010 at 17:16

3

Solved

I want to know if it would be possible to run an OpenMP program on multiple hosts. So far I only heard of programs that can be executed on multiple thread but all within the same physical computer....

3

Since c++17 std library support parallel algorithm, I thought it would be the go-to option for us, but after comparing with tbb and openmp, I changed my mind, I found the std library is much slower...
Counselor asked 12/10, 2020 at 22:43

2

Solved

I am trying to solve a homework example at parallel computing. Here is the given code snippet: for (int i=0; i < n-1; i++) { x[i] = (y[i] + x[i+1]) / 7; } We have to analyze the code snippet r...
Constitutionally asked 3/6, 2022 at 19:6

1

Solved

I'm attempting to benchmark the memory bandwidth on a ccNUMA system with 2x Intel(R) Xeon(R) Platinum 8168: 24 cores @ 2.70 GHz, L1 cache 32 kB, L2 cache 1 MB and L3 cache 33 MB. As a reference, ...
Seeder asked 10/5, 2022 at 7:55

© 2022 - 2025 — McMap. All rights reserved.