How to specify a generic architecture to GCC (Was: SSE3 issue with iqtree when trying to enable i386)
- To: Debian Mentors List <debian-mentors@lists.debian.org>
- Cc: 813436@bugs.debian.org, 813438@bugs.debian.org
- Subject: How to specify a generic architecture to GCC (Was: SSE3 issue with iqtree when trying to enable i386)
- From: Andreas Tille <andreas@an3as.eu>
- Date: Tue, 28 Jun 2016 11:01:07 +0200
- Message-id: <[🔎] 20160628090107.GO6365@an3as.eu>
- In-reply-to: <CAPfNLp7qWDqXBAPtexj39-oS9GkQ8DetYwQtcgfhebkV7NpFYQ@mail.gmail.com>
- References: <20160310162535.GN23319@an3as.eu> <CAPfNLp6ifus0=Wv_ckCqn2_ohPnoc2QFSQfT6DaE9_cZBcU4HA@mail.gmail.com> <1457643413.1294.44.camel@gmail.com> <20160310210216.GB7261@an3as.eu> <CAPfNLp7jdOmp-WipOkBg-VTPG6hCJR9jEaXt9=uWrZgk16O+RA@mail.gmail.com> <20160311090322.GB22178@an3as.eu> <CAPfNLp7CXPAnMF9v1Bxr+WwefT0=mZYAuLe=S0PZVc7iGca-tA@mail.gmail.com> <A381E1FD-7D43-4B1B-A504-88B75B68799D@univie.ac.at> <20160311222023.GB11722@an3as.eu> <CAPfNLp7qWDqXBAPtexj39-oS9GkQ8DetYwQtcgfhebkV7NpFYQ@mail.gmail.com>
Hi,
I admit I can not answer the question asked by upstream. The package in
question is iqtree[1] and they said that they have different
computational kernels implemented to respect different hardware.
Current Git[1] does not even build - may be due to some fine tuning of
gcc options needed???
Any help is welcome
Andreas.
On Sat, Mar 12, 2016 at 07:33:48PM +0100, Tung Nguyen wrote:
> >
> > That's perfect. A runtime detection is always the best way to go. The
> > only problem might be that some architectures do not know SSE3 at build
> > time and the code needs to compile also under this conditions.
> >
> >
> Dear Andreas,
>
> Is it possible to specify a generic architecture to GCC when you compile
> the code so that all 3 computational kernels (non-SSE, SSE3, AVX) get
> compiled? Then during runtime IQ-TREE will automatically detect which
> kernel it should use, depending on the architecture. I assume that the
> non-SSE kernel should run fine on most x86 architecture. If this approach
> does not work, then we will provide a flag to exclude the compilation of
> the SSE3 and AVX kernels.
[1] https://anonscm.debian.org/git/debian-med/iqtree.git
--
http://fam-tille.de
Reply to: