From: Benda Xu <heroxbd@gentoo.org>
To: gentoo-science@lists.gentoo.org
Subject: [gentoo-science] On BLAS and LAPACK int64 ABI
Date: Thu, 11 Jul 2019 21:59:20 +0800 [thread overview]
Message-ID: <87sgrcisef.fsf@proton.d.airelinux.org> (raw)
Hi,
This discussion emerged from https://github.com/gentoo/sci/pull/876. I
am taking it here for better future reference.
cdluminate:
> It would be problematic to provide int64 ABI/API through libblas.so or
> liblapack.so since that would lead to a mess with the int32
> ABI/API. Adding the int64 USE flags to existing packages will make it
> hard to write ebuilds for users who want e.g. both int32 and int64
> openblas at the same time. My personal recommendation is to provide a
> new set of packages, say eselect-{blas64,lapack64} + sci-libs/lapack64,
> which are clearly isolated with the int32 ones. These new packages
> should change SONAMEs into say libblas64.so and liblapack64.so. This is
> the same as what I'm doing for Debian's 64bit-indexing BLAS/LAPACK
> packages.
heroxbd:
> We can make int64 as a use flag and by enabling it we install 2 sets of
> libraries: libblas.so and libblas64.so. What do you think?
kiwifb:
> I know why you want that @heroxbd - you want to avoid ebuild
> duplication. On the face of it it is less ebuilds to maintain in
> exchange of more complex ebuilds. However I think it would still be
> wise to have at least separate virtuals - that means dependencies on
> int32 and int64 are completely separate and allow a different set of
> implementations without impinging on each other.
> Whether to go for doubling the ebuilds or making them more complex is
> up to the maintainer. And we have to deal with the headers in any
> case.
cdluminate:
> I agree with @kiwifb . At least we need
> virtual/{blas64,cblas64,lapack64,lapacke64}. For the implementations
> we could introduce two new USE flags: int32 and int64, where each of
> them could trigger a separate full build, and int32 is enabled by
> default. Same for the eselect packages.
I agree with int32 and int64 USE flags. but int32 and int64 is too
simple and misleading, how about index_int32 and index_int64? They are
named after python_targets_python3_7.
Virtual/blas could do the same: virtual/blas[index_int32,index_int64].
Yours,
Benda
next reply other threads:[~2019-07-11 13:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-11 13:59 Benda Xu [this message]
2019-07-17 10:39 ` [gentoo-science] On BLAS and LAPACK int64 ABI Mo Zhou
2019-07-17 10:53 ` François Bissey
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=87sgrcisef.fsf@proton.d.airelinux.org \
--to=heroxbd@gentoo.org \
--cc=gentoo-science@lists.gentoo.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