[squeak-dev] Smallapack

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Fri Jul 29 17:41:50 UTC 2016


2016-07-29 19:28 GMT+02:00 Nicolas Cellier <
nicolas.cellier.aka.nice at gmail.com>:

>
>
> 2016-07-29 19:02 GMT+02:00 Yoshiki Ohshima <Yoshiki.Ohshima at acm.org>:
>
>> First question:
>>
>> The Mac OS comes with Accelerate.Framework and that contains BLAS.
>> But probably I still should compile those libraries, right?
>>
>>
> No, it's better to link to accelerated library.
> I don't have a Mac handy here to verify how to link to it though.
> I'll be able to check latter in the evening
>
>

I've downloaded the code, and I see it now: the library names are hardcoded
(see implementors of moduleName).
For Mac it is libblas.dylib and libcblas.dylib
Also note that there is a preference for switching to cblas (blas functions
with C interface).
This should be faster because we pass some parameters by value rather than
allocating them and pass reference...

Module names could also be replaced by Preferences eventually, but by now,
you'll have to override...


>
>> On Thu, Jul 28, 2016 at 4:11 PM, Yoshiki Ohshima
>> <Yoshiki.Ohshima at acm.org> wrote:
>> > Thanks!
>> >
>> > On Thu, Jul 28, 2016 at 4:04 PM, Nicolas Cellier
>> > <nicolas.cellier.aka.nice at gmail.com> wrote:
>> >> Hi Yoshiki,
>> >>
>> >> Thanks for inquiring about Smallapack.
>> >>
>> >> This problem has been solved in 2011 as the post tells.
>> >> Moreover, it was about alignment of squeak objects that was on
>> multiple of 4
>> >> on SqueakV3 memory.
>> >> Spur is 8 byte aligned, so the problem would have also vanished
>> without any
>> >> patch for those being patient :)
>> >>
>> >> For the 15 arguments limit, Smallapack comes with it's own compiler,
>> so it's
>> >> a non issue.
>> >> Maybe I should make the documentation more clear on
>> >>
>> https://github.com/nicolas-cellier-aka-nice/smallapack/wiki/SmallapackSqueak
>> >> ?
>> >>
>> >> Unfortunately, there's no Sparse Matrix representation in Lapack.
>> >> If you know of a good package for that, it could be integrated.
>> >>
>> >> If you have other questions, don't hesitate to ask.
>> >>
>> >> cheers
>> >>
>> >> Nicolas
>> >>
>> >> 2016-07-29 0:22 GMT+02:00 Yoshiki Ohshima <Yoshiki.Ohshima at acm.org>:
>> >>>
>> >>> I am trying to do a bit of linear algebra stuff that involves to solve
>> >>> a sparse 2D matrix (for a variation of doing least square fit).
>> >>>
>> >>> There was a message from Nicolas:
>> >>>
>> >>>
>> http://lists.squeakfoundation.org/pipermail/squeak-dev/2011-August/161113.html
>> >>>
>> >>> Is this where it stands today, too?  It looks like that arg count
>> >>> problem is still there in 5.0, but is it in a way non-issue as it is
>> >>> still FFI based?
>> >>>
>> >>> Thanks!
>> >>>
>> >>> --
>> >>> -- Yoshiki
>> >>>
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > -- Yoshiki
>>
>>
>>
>> --
>> -- Yoshiki
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20160729/8fca9be6/attachment.htm


More information about the Squeak-dev mailing list