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.
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,
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
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
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
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
6 matches
Mail list logo