This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RHEL3, openmp, got system error(22):


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]