[vtkusers] ERROR: In vtkMultiThreader.cxx
warfield at bwh.harvard.edu
Wed May 30 09:22:10 EDT 2001
You are compiling and linking on solaris but not linking with the POSIX threads
library. Instead you are getting stubs in libc which is providing a
POSIX compliant threads interface which happens to fail on all thread creation
I suggest you link with
Sun used to have a bug that simply linking with -lpthread was not sufficient
and it isn't clear to me that they have fixed it yet.
And while I am making suggestions, I think you will find performance is
improved under SunOS 5.7 if you also do a platform specific call to set the
number of Light Weight Processes the Sun runtime provides - by default it
has really poor behavior. The call you want is something like:
This is assuming you want at least as many threads as CPUs and you want as many
LWPs as CPUs and you want the threads to run on different CPUs when that is
On Wed, May 30, 2001 at 02:49:00PM +0200, Jordi Inglada wrote:
> Hi all,
> I have compiled vtk3.2 on a sparc SUNW,Ultra-4 with SunOS 5.7, using g++
> version 2.95.2 and Mesa 3.4.2. I set the -DVTK_USE_PTHREADS flag. The
> compilation goes without problem.
> Now I am trying to port an application that I have developped in Linux
> with the same versions of vtk and Mesa. All seems to work fine, but at
> execution time, I get the following message:
> ERROR: In vtkMultiThreader.cxx, line 368
> vtkMultiThreader (0x1d29a8): Unable to create a thread.
> pthread_create() returned -1
> I have searched the mailing-list archive and I found a message saying
> that if mesa uses pthreads there can be problems. I have checked my mesa
> library with "nm libGL.so |grep pthread" and I got no hits; I have also
> tried to compile using the -DVTK_USES_SPROC flag and without pthreads,
> but compilation fails.
> Has anybody an idea of how I could deal with this problem (without using
> OpenGL instead of Mesa)?
> Jordi Inglada - Post Doc
> CNES - Centre Spatial de Toulouse
> DSO/OT/QTIS/SR - Bpi 811
> 18 Av. Edouard Belin
> 31401 Toulouse Cedex 4 - France
> Tel: +33 (0)5 61 27 33 97 - Fax: +33 (0)5 61 28 31 09
> GSM: +33 (0)6 89 32 92 94
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
Simon Warfield, Ph.D. warfield at bwh.harvard.edu Phone:617-732-7090
http://www.spl.harvard.edu/~warfield FAX: 617-582-6033
Thorn 329, Brigham and Women's Hospital, Harvard Medical School
Department of Radiology, 75 Francis St, Boston, MA, 02115
More information about the vtkusers