help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] efficient use of gsl in multithreaded programs


From: Brian Gough
Subject: Re: [Help-gsl] efficient use of gsl in multithreaded programs
Date: Sat, 21 Jan 2006 18:56:45 +0000

Analabha Roy writes:
 > that which variables should I set to shared and which should I keep private
 > to a particular thread? I mean, I've defined:
 > 
 > const gsl_odeiv_step_type,
 > gsl_odeiv_step, g
 > sl_odeiv_control and
 > gsl_odeiv_evolve
 > 
 > datatypes. Since each thread calls the integrator with a different set of
 > initial values for y[i], they should be marked private in the code, right?
 > What about the other datatypes? All of the above datatypes are also
 > evaluated separately by each thread, so they should all be set to private,
 > right? I did, and my program just hung on evaluating the first IC at t=0 and
 > stayed there.

I don't think you need to make gsl_odeiv_step_type private but the others
look correct.

-- 
Brian Gough

Network Theory Ltd,
Publishing the GSL Manual --- http://www.network-theory.co.uk/gsl/manual/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]