Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

OpenMP with kernel 2.6

fengfs
Beginner
266 Views
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.
0 Kudos
0 Replies
Reply