-
as seen on Programmers
- Search for 'Programmers'
After reading about OpenMP and not finding functions to support semaphores, I did an internet search for OpenMP and the readers and writers problem, but found no suitable matches.
Is there a general method for replacing counting semaphores in OpenMP with something that it supports? Or is there just…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, people.
I try to use openmp for multithreading the loop through std::set. When I write the following code -
#pragma omp parallel for
for (std::set<A>::const_iterator i = s.begin(); i != s.end(); ++i) {
const A a = *i;
operate(a);
}
I get an error -…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a large C++ program that modifies the FPU control word (using _controlfp()). It unmasks some FPU exceptions and installs a SEHTranslator to produce typed C++ exceptions. I am using VC++ 9.0.
I would like to use OpenMP (v.2.0) to parallelize some of our computational loops. I've already…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I am trying to run a program on a computer cluster. The structure of the program is the following:
PROGRAM something
...
CALL subroutine1(...)
...
END PROGRAM
SUBROUTINE subroutine1(...)
...
DO i=1,n
CALL subroutine2(...)
ENDDO
...
END SUBROUTINE
SUBROUTINE subroutine2(...)
...
CALL subroutine3(…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
My matrix multiplication code is
int matMul(int ld, double** matrix)
{
//local variables initialize
omp_set_num_threads(nthreads);
#pragma omp parallel private(tid,diag,ld) shared(i,j,k,matrix)
{
/* Obtain and print thread id */
tid = omp_get_thread_num();
for ( k=0; k<ld; k++) …
>>> More