From mikko.korpela at helsinki.fi  Tue Jan 17 14:38:58 2017
From: mikko.korpela at helsinki.fi (Mikko Korpela)
Date: Tue, 17 Jan 2017 15:38:58 +0200
Subject: [Rd] parallel::detectCores() bug on Raspberry Pi B+
In-Reply-To: <cc0d1047-de96-d6a0-0254-f54a2bedb7ec@gmail.com>
References: <cc0d1047-de96-d6a0-0254-f54a2bedb7ec@gmail.com>
Message-ID: <56dd3f28-687f-5b5e-8a38-2afa771b9d7f@helsinki.fi>

On 10/12/16 00:22, Paul Gilbert wrote:
> In R 3.3.2 detectCores() in package parallel reports 2 rather than 1 on
> Raspberry Pi B+ running Raspbian. (This report is just 'for the record'.
> The model is superseded and I think no longer produced.)  The problem
> seems to be caused by
>
>  grep processor /proc/cpuinfo
> processor    : 0
> model name    : ARMv6-compatible processor rev 7 (v6l)
>
> (On Raspberry Pi 2 and 3 there is no error because the model name lines are
>
>  model name    : ARMv7 Processor rev 5 (v7l)
>  model name    : ARMv7 Processor rev 4 (v7l)
> )

I posted a related bug report to R bugzilla, 
<https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17213>. The patch 
included in that report is mainly about detecting physical CPUs across 
multiple CPU sockets, but should also fix this issue.

-- 
Mikko Korpela
Department of Geosciences and Geography
University of Helsinki



[Rd] parallel::detectCores() bug on Raspberry Pi B+
Mikko Korpela