This forum has been archived. All content is frozen. Please use KDE Discuss instead.

OpenMP pragma not found

Tags: None
(comma "," separated)
stevejb
Registered Member
Posts
2
Karma
0
OS

OpenMP pragma not found

Thu Feb 23, 2012 6:03 pm
Hello,

I have the following function:
Code: Select all
void addValToFull(MatrixXf& fullmat, MatrixXf& valmat,
                  int nstates, int nshocks) {


  // cout << "FULLMAT: " << endl;
  // cout << fullmat << endl;
 
  #pragma omp parallel for 
  for(int i = 0; i < nshocks; i++) {
    RowVectorXf vrow(nstates);
    vrow = valmat.row(i);
    fullmat.middleRows( i*nstates, nstates).rowwise() += vrow;

  }

}



which works fine without the omp pragma, but turning on the pragma gives the following error:

/home/stevejb/myhg/is-solver/Eigen/src/Core/util/XprHelper.h(122): internal error: assertion failed: find_assoc_pragma: pragma not found (shared/cfe/edgcpfe/il.c, line 19440)

row_major_bit = Options&RowMajor ? RowMajorBit : 0,
^

compilation aborted for sjb-test-inplace.cpp (code 4)


What do I do to make this loop work? Note, I have other eigen/OpenMP parallel for loops working. Just not this one for whatever reason.

Thanks,
Stephen
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: OpenMP pragma not found

Thu Feb 23, 2012 10:19 pm
I'm afraid this is a compiler issue. What's the compiler version?
stevejb
Registered Member
Posts
2
Karma
0
OS

Re: OpenMP pragma not found

Sat Mar 03, 2012 12:57 am
Sorry, this was with a slightly dated version of icpc. I have no issues with the latest icpc.

icpc (ICC) 12.1.3 20120212


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]