Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Nathaniel Smith
On Jul 13, 2015 1:44 AM, Eric Martin e...@ericmart.in wrote: My procedure questions: Is the installation procedure I outlined above reasonable, or does it contain steps that could/should be removed? Having to edit Numpy source seems sketchy to me. I largely came up with this procedure by

Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Ian Henriksen
On Mon, Jul 13, 2015 at 11:08 AM Nathaniel Smith n...@pobox.com wrote: I think that if you can make this work then it would be great (who doesn't like less code that does more?), but that as a practical matter accomplishing this may be difficult. AFAIK there simply is no way to write generic

Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Oscar Villellas
On Mon, Jul 13, 2015 at 8:40 AM, Eric Martin e...@ericmart.in wrote: [...] *My questions about this:* CBLAS questions: What does CBLAS do, and why/when is it necessary? For both ACML 6 and Eigen, I could not link directly to the library but could with CBLAS. My understanding is that the

Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Eric Martin
Nathaniel and Ian both mention adding code to Numpy to explicitly support Eigen. It seems to me that a potentially better route than add code to Numpy to support BLAS library for each library is to make Numpy easy to configure to compile with an arbitrary BLAS library (like what I've been doing).

Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Nathaniel Smith
On Jul 13, 2015 11:48 AM, Eric Martin e...@ericmart.in wrote: Nathaniel and Ian both mention adding code to Numpy to explicitly support Eigen. It seems to me that a potentially better route than add code to Numpy to support BLAS library for each library is to make Numpy easy to configure to

Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Ian Henriksen
On Mon, Jul 13, 2015 at 7:55 AM Nathaniel Smith n...@pobox.com wrote: On Jul 13, 2015 1:44 AM, Eric Martin e...@ericmart.in wrote: My procedure questions: Is the installation procedure I outlined above reasonable, or does it contain steps that could/should be removed? Having to edit Numpy

Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Pauli Virtanen
13.07.2015, 20:08, Nathaniel Smith kirjoitti: [clip] Keep in mind that any solution needs to support weird systems too, including Windows. I'm not sure we can assume that all BLAS libraries are ABI compatible either. Debian/Ubuntu make sure that this is true for the ones they ship, but not all

Re: [Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Pauli Virtanen
13.07.2015, 19:44, Eric Martin kirjoitti: It seems to me that a potentially better route than add code to Numpy to support BLAS library for each library is to make Numpy easy to configure to compile with an arbitrary BLAS library (like what I've been doing). Does this work: export ATLAS=None

[Numpy-discussion] Numpy, BLAS, and CBLAS questions

2015-07-13 Thread Eric Martin
Hi, I've been playing around recently with linking Numpy to different BLAS implementations, particularly Eigen and ACML 6 (with openCL support!). I've successfully linked Numpy to both of these libraries, but I found the process overly difficult and confusing. I'm interested in either writing a