View Single Post
Old 01-31-08, 05:35 AM   #4
mlauss
Registered User
 
Join Date: Aug 2007
Posts: 43
Default Re: linux library needed for pthread_setaffinity_np

Your libc appears to be missing NPTL bits

This is from glibc-2.7 (which is NPTL only):
# nm /lib/libpthread-2.7.so | grep setaffinity
0000e0c0 t __pthread_attr_setaffinity_new
0000e1c0 t __pthread_attr_setaffinity_old
0000ded0 t __pthread_setaffinity_new
0000df80 t __pthread_setaffinity_old
0000e0c0 T pthread_attr_setaffinity_np@@GLIBC_2.3.4
0000e1c0 T pthread_attr_setaffinity_np@GLIBC_2.3.3
0000ded0 T pthread_setaffinity_np@@GLIBC_2.3.4
0000df80 T pthread_setaffinity_np@GLIBC_2.3.3

Also, maybe it works with
#include<nptl/pthread.h>
since I'm told pthread_setaffinity_np() is a wrapper around
the sched_setaffinity() call (you know the "static inline" kind of wrapper ;-) )
mlauss is offline   Reply With Quote