Most voted "openmp" questions
11 questions
Sort by count of
-
8
votes3
answers918
viewsParallelism and Simultaneity
Reading a few things on the subject, I realized they are not the same thing, so I would like to find out: What’s the difference between Parallelism and Simultaneity in proceedings?…
-
1
votes0
answers134
viewsParallelization of Bubblesort Open-MP C++
I’m trying to paralyze the bubblesort algorithm using Open-MP and C++, and the parallelization strategy is pipe. The following code, to me, makes sense, but it doesn’t work, and only sorts the…
-
1
votes1
answer116
viewsHow to use Lock Functions (Lock Routines) from Openmp?
I need to create 5 easy-to-understand algorithms for each of the blocking functions below in C or C++ to be able to exemplify how each one works and present to my office staff.…
-
1
votes1
answer63
viewsHow to parallelize (Openmp) a method call?
So I’m developing a work to perform the comparison of a sequential and parallel execution of a Pattern Matching method. My input is a. txt of dozens of lines, which I traverse and store inside a…
-
1
votes1
answer167
viewsParallelizing n queens problem with Openmp
I’m having trouble parallelizing my C code with Openmp and getting good performance on the n queens problem. The results are always considerably slower with parallelization enabled and I do not know…
-
0
votes3
answers435
viewsHow to loop in openMp to count lines from a text file?
How to loop using the library OpenMP to count lines a file? #pragma omp parallel for for (string line; getline(file, line); ) { count++; } This way he doesn’t execute, it seems he only accepts for…
-
0
votes1
answer785
viewsHow to parallelize this code snippet using Openmp
I’m trying to parallelize an activity using OpenMp. I having problems because after the first is the code below the result shows wrong. #include <stdio.h> #include <fstream> #include…
-
0
votes0
answers66
viewsOmp miscompartes in the call of the same function
Dear friends... I am a beginner in Omp (parallel programming in general) and am going through the following problem, which may be obvious. So I came to ask for help. The call is as follows #pragma…
-
0
votes1
answer50
viewsVector issues using intel’s C++ compiler in Visual Studio
The code below is the result of a work I am developing, basically it is the multiplication of a square matrix, however, the results I had parallelizing the application with the Openmp API were…
-
0
votes0
answers60
viewsHow to decrease running time using openmp
I wanted to know what I can do to decrease the running time using Openmp threads. I made a code to add the values of a size 2² vector, but the time measures are practically equal when I increase the…
-
0
votes0
answers59
views