public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gerard Jungman <jungman@lanl.gov>
To: GSL Discuss Mailing List <gsl-discuss@sourceware.org>
Subject: Re: libflame version 4.0 announced
Date: Tue, 16 Feb 2010 23:36:00 -0000	[thread overview]
Message-ID: <1266363451.8015.153.camel@manticore.lanl.gov> (raw)
In-Reply-To: <4B3F0184.2030505@iki.fi>


I spent a little time looking at the libflame manual. I have some
questions; maybe somebody knows the answers.

(1) The library requires FLA_Init() and FLA_Finalize(). I wonder
    what library-level data is initialized and how this interacts
    with multi-threading. It looks like it is meant to work ok
    with threads, but there is a build switch (--enable-multithreading)
    which makes me wonder what is going on. I don't like
    any kind of hidden state, and I really don't like
    hidden global state.

(2) The LAPACK-like coverage seems reasonable. But I am not a good
    judge of this. How much LAPACK functionality is covered in
    this latest release? Obviously all the banded-matrix stuff
    is out, since libflame does nothing with banded matrices.
    But how complete is it regarding core functionality?

(3) The separation of the metadata (FLA_Obj) and the data buffer is
    good. At least this means that a wrapper implementation (say C++)
    can use any allocation scheme it likes for the buffer. I'm not sure
    about FLA_Obj itself. From the code examples, it appears that
    FLA_Obj is stack friendly. But I can't be sure without looking
    at the headers. So I guess I can answer this question myself...
    but I'm tired now.

(4) According to the manual, libflame calls abort() when it encounters
    a problem. As I have discussed before, this is brain-damaged. It
    makes it hard for other library developers (us) to integrate
    their thing into an existing error-handling system. They seem
    to admit it is a problem, but it's probably a low priority
    for them. How can we integrate this?

(5) There are many configuration/build options. Is it feasible to
    build and deploy several different versions (with and without
    SuperMatrix, etc), from which a selection can be made at link
    time, requiring no source-level changes in client code?


Some random comments:

(a) I'm not sure what it would mean to "use libflame under gsl-2.0",
    as mentioned below. We need to think about ways to insulate
    ourselves from any specific project, while still allowing it
    to be used transparently.

(b) libflame does not provide BLAS functionality, it requires
    an external BLAS. This is good, since people want to use
    special optimized versions for their architectures. But
    it also means we have the same problem as with GSL:
    detecting and linking against an appropriate BLAS,
    and dealing with its possible absence. It would be
    better if we could eliminate gslcblas once and for all,
    or at least factor it out of the main release somehow.

(c) In the libflame world, it looks like scalars are themselves
    instances of 'FLA_Obj'. Ok, I can see the logical coherence
    in this, but it seems like it could be very inconvenient at
    times.

(d) There are several places where the API assumes C stdio. It looks
    like some of these uses are internal (like FLA_Print_message
    being used for error messages). This is brain-damaged, since
    it makes it harder to integrate into other environments
    (i.e. C++) where C stdio is not appropriate. It's ok to
    have such "convenience" functions in the API, but they
    should not be used internally.

(e) The autotools build looks somewhat annoying. I'm really
    tired of autotools. Obviously, the same is true of GSL.

(f) The API has both capitals and underscores, the worst choice
    of all. Seemingly trivial, but it makes me queasy. Will people
    never learn?


I'm not trying to be super-critical. But if we are seriously
considering this thing, then no stone will be left un-turned.

--
G. Jungman



-------- Original Message -------- 
Subject: 	libflame version 4.0 announced
Date: 	Sun, 14 Feb 2010 00:15:04 -0600
From: 	Rhys Ulerich <rhys.ulerich@gmail.com>
To: 	gsl-discuss@sourceware.org


Hi all,

There was some talk several months back on using libflame underneath
GSL 2.0.  libflame 4.0 was announced today, and it both includes
row-major support and eliminates their lingering Fortran/LAPACK
dependencies.  The release announcement follows...

- Rhys

  parent reply	other threads:[~2010-02-16 23:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-02  8:19 GSL extension ode-initval2-1.0 released Tuomo Keskitalo
2010-01-22  9:16 ` [Help-gsl] " Forest Yang
2010-01-23 11:15   ` Tuomo Keskitalo
2010-02-16 23:36 ` Gerard Jungman [this message]
2010-02-17 21:20   ` libflame version 4.0 announced Brian Gough
2010-02-17 22:49     ` Gerard Jungman
2010-02-17 23:10       ` Rhys Ulerich
2010-02-19 18:19       ` Brian Gough
2010-02-17 22:51     ` James Amundson
2010-02-14  6:15 Rhys Ulerich
2010-02-17 21:20 ` Brian Gough

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1266363451.8015.153.camel@manticore.lanl.gov \
    --to=jungman@lanl.gov \
    --cc=gsl-discuss@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).