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. Output is below. So it appears that
pthread_setaffinity_np is on my system, but not being found?
Ralph
********************
[EMAIL PROTECTED] ~/learn_OpenMP]$ gcc-4.3.2 pthread_setaffinity_np_test.c
-o pthread_setaffinity_np_test -lm -lpthread
[EMAIL PROTECTED] ~/learn_OpenMP]$ pthread_setaffinity_np_test
thread_func:processor 0
result: 5333333343333.449219
thread_func:processor 1
result: 5333333343333.449219
[EMAIL PROTECTED] ~/learn_OpenMP]$
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org