From nakama at ki.rim.or.jp  Sun Dec  5 16:02:40 2010
From: nakama at ki.rim.or.jp (Ei-ji Nakama)
Date: Mon, 6 Dec 2010 00:02:40 +0900
Subject: [Rd] SurviveGotoBLAS2 for Win64 (human sacrifice release)
In-Reply-To: <alpine.LFD.2.00.1012050751410.23933@gannet.stats.ox.ac.uk>
References: <AANLkTina-mGgcnWqvHHsXR6gQxtP0C9+Aah1JvaXwy3-@mail.gmail.com>
	<alpine.LFD.2.00.1012050751410.23933@gannet.stats.ox.ac.uk>
Message-ID: <AANLkTimxntOsR24qMYExcgQtssY3h_Tee_diA5G_X8Oi@mail.gmail.com>

Hi,

2010/12/5 Prof Brian Ripley <ripley at stats.ox.ac.uk>:
>?However, like most BLAS this is tied to a particular chip (you don't say what you
> used: my machine is identified as penryn) and I am undecided if it is worth
> provided a range of pre-compiled GotoBLAS2 Rblas.dll (or how wide the range
> would need to be to be useful).

It is the build with DYNAMIC_ARCH.

> ?Maybe just "core2" would be useful: maybe penryn, dunnington, nehalem
> and atom are needed. ?(A quick look suggests dunnington is not used,
> and nehalem is only used on x86_64.)

If CPU is not identified, an appropriate routine is not used.
However, neither the model of CPU nor the value of the exmodel etc
completely have the rule.
The stack alignments of Win64 are 8bytes in default.
However, stack alignments of Win32 is 4bytes (mingw,thread and DLL case).
Therefore, it doesn't run.
If the results of a lot of CPUID(http://www.etallen.com/cpuid.html)
are collected,
the automatic recognition is ameliorable.

$ ./cpuid | sed -n '/^CPU 0:/,/^CPU 1:/p'|grep "vendor_id" -B0 -C8
  vendor_id = "GenuineIntel"
  version information (1/eax):
     processor type  = primary processor (0)
     family          = Intel Pentium Pro/II/III/Celeron/Core/Core
2/Atom, AMD Athlon/Duron, Cyrix M2, VIA C3 (6)
     model           = 0xc (12)
     stepping id     = 0x2 (2)
     extended family = 0x0 (0)
     extended model  = 0x2 (2)
     (simple synth)  = Intel Core i7-900 (Gulftown B1) / Core i7-980X
(Gulftown B1) / Xeon Processor 3600 (Westmere-EP B1) / Xeon Processor
5600 (Westmere-EP B1), 32nm

> So I'd identified this as something which would need quite a bit of thought,
> maybe something to be done for R 2.13.0.

I reaction may be dull.
-- 
EI-JI Nakama? <nakama (a) ki.rim.or.jp>
"\u4e2d\u9593\u6804\u6cbb"? <nakama (a) ki.rim.or.jp>



[Rd] SurviveGotoBLAS2 for Win64 (human sacrifice release)
Ei-ji Nakama