OpenMP with kernel 2.6

OpenMP with kernel 2.6

installed intel C++ 8.0 on Fedora Core 1 and 2.

finished compiling a very sample code as below with no problem:
//+++++++++++++++++++++++++++++++++++++++++++++++
#include
#include
#include
#include

using namespace std;

int main()
{
cout "staring ..." endl;
int i;
const int n = 100;
omp_set_dynamic(0);
omp_set_num_threads(64);
#pragma omp parallel for
for (i=1; i
cout "i = " i endl;
usleep(5000);
}
#pragma omp barrier
return 0;
}
//+++++++++++++++++++++++++++++++++++++++++++++

on Fedora core 1 with kernel 2.4, run it and get results;

on Fedora core 2 with kernel 2.6, run it and got error message: "segement fault" even not output "starting....".

Any suggestions or solutions?

Many thanks.

1 post / novo 0
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.