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 re
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, an
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.
When
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
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
Initially
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 me.
Hello,
I am trying to use OpenMP inside an application that uses OpenSceneGraph.
I can get OpenMP to use multiple threads inside my examples, but NOT
inside my my OpenSceneGraph app. I think that I may have tracked the
problem down to the use of sched_setaffinity inside files in
.../OpenT
7 matches
Mail list logo