RE: RHEL3 63bit,using openmp, got system error(22)
"Prince, Timothy C" <[email protected]> Sun, 21 Nov 2004 20:19:44 -0800
| Newsgroups | gmane.linux.redhat.ia64.general |
|---|---|
| Message-ID | <D2984E17C76B534B9B66BB778F2F9D8C05988501@scsmsx403.amr.corp.intel.com> |
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of hx w Sent: Sunday, November 21, 2004 6:00 PM To: [email protected] Subject: RHEL3 63bit,using openmp, got system error(22) when i using openmp to parallel my program ,=20 icc -openmp tect.c , and run the program: ./a.out i got the following erros: system error(22): __kmp_create_monitor: pthread_create Invalid argument abort: fatal problem My source code: ---------------------------------------------------- #include <stdio.h> #include "omp.h" int main() { int nthreads, tid; int nprocs; char buf[32]; #pragma omp parallel private(nthreads, tid) { tid =3D omp_get_thread_num(); printf("omp thread %d\n", tid); if (0=3D=3Dtid) { nthreads =3D omp_get_num_threads(); printf("total %d\n", nthreads); } } } ---------------------------------------------------- I know the compiler is icc, not gcc. But ,i think the problem is not about the compiler or my souce, I don't know clearly if it is just becauce of my operation system--- RHEL3 64bit, update 2, and how can i do to resolve the problem. I installed all the softwares on the 4 RHEL CDs. _________________________________________________________________ Your example has no difficulty on my EM64T EL3_U3, l_cce_pc_8.1.023, running 2 threads HT. Tim Prince