OpenMP with gcc4?

2010-05-27 Thread Andreas Kahari
Hi list,

With the move to gcc4, will we at some point also get OpenMP support?
This seems to be broken at the moment:

$ cat omp-test.c
int main(void)
{
  int i;
  int a[100];

#pragma omp parallel for
  for (i = 0; i  100; ++i) {
a[i] = i*i;
  }

  return 0;
}
$ cc -fopenmp -o omp-test omp-test.c
cc: libgomp.spec: No such file or directory
$ cc -v
Reading specs from /usr/lib/gcc-lib/amd64-unknown-openbsd4.7/4.2.1/specs
Target: amd64-unknown-openbsd4.7
Configured with: OpenBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070719 



Kind regards,
Andreas



Re: OpenMP with gcc4?

2010-05-27 Thread Joachim Schipper
On Thu, May 27, 2010 at 04:17:38PM +0100, Andreas Kahari wrote:
 Hi list,
 
 With the move to gcc4, will we at some point also get OpenMP support?
 This seems to be broken at the moment:

Why do you want that? It's not terribly useful with the current state of
threading on OpenBSD...

Joachim