Skip to content

lme4 + R 2.11.0 + mac unavailable

1 message · John Maindonald

#
I have wondered about what OSX may do to take advantage of
multiple processors somewhat automatically.  I'd expect a few
new traps, beyond what happens for threading on single processor
systems.  I had a brief look at the document:
http://developer.apple.com/mac/library/documentation/General/Conceptual/ConcurrencyProgrammingGuide/Introduction/Introduction.html

As I understand this, recent versions of MacOS do have some 
relatively automatic concurrency abilities, but the code writer 
(always?) must invoke them.  I'd not expect the threads to be the 
same from one run to another, or are attempts made to ensure this?  
Great care is in any case required, for any use of concurrency that
is handled by the OS, to ensure that the calculations in the different 
threads are totally independent, even to ensuring that rounding 
errors do not change.

Brian's results with the R reference BLAS  (which are not threaded?)
perhaps suggest that threading/concurrency in this part of the code 
are not issues?

Does lme4 on the Mac call code, apart from the BLAS, where there 
may be some automatic invocation of concurrency?

I do remember listening to a talk some decades ago about unfortunate
consequences of some compiler optimizations, primarily for numerical 
error. Of course, the whole art has become much more sophisticated
(and challenging) since then.  

The Wikepedia article on Program Optimization is interesting, but it
says nothing about the scope for introducing inconsistencies
between runs, or (worse) inflating numerical error.
http://en.wikipedia.org/wiki/Program_optimization

This seems an omission -- is it assumed that such things do not
nowadays ever happen?

Of course, the problem may lie elsewhere.

John Maindonald             email: john.maindonald at anu.edu.au
phone : +61 2 (6125)3473    fax  : +61 2(6125)5549
Centre for Mathematics & Its Applications, Room 1194,
John Dedman Mathematical Sciences Building (Building 27)
Australian National University, Canberra ACT 0200.
http://www.maths.anu.edu.au/~johnm
On 31/07/2010, at 10:07 PM, Martin Maechler wrote: