Re: [osg-users] OpenThreads/pthreads OpenMP on RHEL5.2

2008-10-15 Thread Ralph R. Peters
Hi, I will try to be much more concise! :-) The problem appears to be that SetProcessorAffinityOfCurrentThread(unsigned int cpunum) is always being called with a cpunum value of zero. More information follows. I am trying to use OpenMP with an application that uses OpenScenGraph.

Re: [osg-users] OpenThreads/pthreads OpenMP on RHEL5.2

2008-10-15 Thread Ralph R. Peters
Hi Robert, Would you please send me your modified code and we can run the same code! Ralph {snip Hi Ralf, As a sanity test I've just added some debug code into src/osgViewer/ViewerBase.cpp and src/OpenThreads/pthreads/PThead.c++ to track what cpu numbers as being assigned from the viewer,

Re: [osg-users] OpenThreads/pthreads OpenMP on RHEL5.2

2008-10-15 Thread Ralph R. Peters
Hi Robert all, I did the simple thing to test if the call pthread_setaffinity_np( pthread_self(), sizeof(cpumask), cpumask) was causing OpenMP problems. A code snippet from the function SetProcessorAffinityOfCurrentThread in PThread.c++ follows. Changing doit from true to false and

[osg-users] OpenThreads/pthreads OpenMP on RHEL5.2

2008-10-14 Thread Ralph R. Peters
Hi Robert, I get an email digest and so I have been responding directly with thunderbird. What should I put in the subject line so that I maintain the thread? Is what I put above sufficient? Please tell me what to do! Yes, my last post was really long!!! :-[ I was trying to provide as

[osg-users] OpenThreads/pthreads OpenMP on RHEL5.2

2008-10-14 Thread Ralph R. Peters
Hi, I spent some time talking to jakub who runs the gcc forum and he disagrees with you. A digest follows of our exchanges and a link to the entire thread. A related problem may be that the test for pthread_setaffinity_np fails in CMake. See my second post from yesterday. Ralph

[osg-users] OpenThreads/pthreads OpenMP on RHEL5.2 take 2

2008-10-13 Thread Ralph R. Peters
Hi, I found some code that tests pthread_setaffinity_np at http://www.thinkingparallel.com/2006/08/18/more-information-on-pthread_setaffinity_np-and-sched_setaffinity. I added to prints immediately before the 2 calls to pthread_setaffinity_np in thread_func. It compiles and runs fine for