  | |  | Taroon 64bit, update 2, openmp, system error! | Taroon 64bit, update 2, openmp, system error! 2004-11-21 - By hx w
Back
when i using openmp to parallel my program ,
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 = omp_get_thread_num();
printf( "omp thread %d\n ", tid);
if (0==tid) {
nthreads = 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.
Does anyone meet the same problem as me?Any advices
are welcome~~
Thanks!
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____
Do You Yahoo!?
150?��?��MP3����?????????��????????????
http://cn.rd.yahoo.com/mail_cn/tag/yisou/music/*http://music.yisou.com/
?????��??????????????�(�?????????????��??
http://cn.rd.yahoo.com/mail_cn/tag/yisou/image/*http://image.yisou.com
1G????1000?��??????????��??��??????
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
--
Taroon-list mailing list
Taroon-list@(protected)
http://www.redhat.com/mailman/listinfo/taroon-list
|
|
 |