[Omp] What goes wrong here (ICE)
Klaas Vantournhout
Klaas.Vantournhout at UGent.be
Thu Apr 27 03:37:51 PDT 2006
Hi,
I don't know if this is the right place to post it, but currently there
is no newsgroup or fora where I could post questions regarding openmp
programming, so that is why I post this here. In case this is not the
right place, please point me to the right place. In that case I'm sorry
to overload the omp community with these posts.
As you might know out of my previous question I use the gcc4.2 compiler
which is in development stage 3 currently. I have written a program and
tried to implement openmp in it but somehow I obtain an internal
compiler error (ICE). I know that gcc4.2 is still unstable but I would
like to check it with compilers which are stable and contain openmp.
The ICE is still there in this remnant of my code.
Could somebody check this if it is also gives an ICE or does not
compile, or point me to my mistake. gcc4.1 on FC5 gives the same error,
but that one has back ported the gomp to the 4.1 if i am right. I could
dump it on bugzilla for gcc, but if it is just general wrong
programming, then this is not useful.
With kind regards
Klaas
<BEGIN code.cpp >
#include "t1.h"
#include <omp.h>
T1 function (void) {
int ii,N;
T1 temp(N);
#pragma omp parallel for
for (ii = 0; ii < N; ii++) {
temp(ii,ii) = ii;
}
return temp;
}
<END code.cpp>
<BEGIN t1.h >
#ifndef LINALG_H
#define T1_H
class T1 {
public :
T1(int);
~T1(void);
double &operator()(int, int) const;
private :
double *a;
};
#endif
<END t1.h>
--
"Several billion trillion tons of superhot
exploding hydrogen nuclei rose slowly above
the horizon and managed to look small, cold
and slightly damp."
Douglas Adams - The Hitch Hickers
Guide to the Galaxy
More information about the Omp
mailing list