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:

using namespace std;

int main()
cout "staring ..." endl;
int i;
const int n = 100;
#pragma omp parallel for
for (i=1; i
cout "i = " i endl;
#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 / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.