You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gcc 4.7+ requirement in configure needs to be increased. I don't know when they were introduced, but -march=sandybridge and haswell aren't supported in gcc 4.8 (EL7).
@loveshack Sorry, I misread your comment. I thought you were saying that the aforementioned flag syntax wasn't supported until version 4.8. I'll try to dig into this to see if I can find out when gcc switched their -march syntax.
This depends on whether you want to support system compilers or assume that people will get a newer version through some mechanism. For example, CentOS 7 is still using gcc 4.8.5.
I'd love to get something as modern as 4.8.5. :) We're currently stuck
on 4.4, but I have hope that within a year 4.8.5 will become standard
here. A major consideration is that not all users have sudo access, and
not all machines have access to package installers. Compiling gcc is not
for the faint of heart, and it can easily brick your system. (I've
bricked 2 systems trying it.) I've been in some very tight spots before
around this. There's a good reason to consider the needs of people
trapped with system compilers, especially as blis gains wider use.
That being said, nothing wrong with having 2 versions of blis if you
have a cool feature that needs modern gcc.
On 8/20/19 1:12 PM, Devin Matthews wrote:
This depends on whether you want to support system compilers or assume
that people will get a newer version through some mechanism. For
example, CentOS 7 is still using gcc 4.8.5.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#324?email_source=notifications&email_token=AHGHJK2MNFQ56YTLSPA723TQFQX2RA5CNFSM4INW6WSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4XGBPA#issuecomment-523133116>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHGHJK2CV4UGQOBDIBSPIFLQFQX2RANCNFSM4INW6WSA>.
I tend to side with @fgvanzee because users will need somewhat up-to-date compilers (and assemblers!) in order to make use of the latest instruction set features and processor tunings anyways.
Why? The performance in blis comes from hand written assembly language
kernels that do not require compiler support. I just request that you
create an archive of the older version of blis so we can still use it in
our company. Not trying to tie your hands here - if you need it, you
need it. But it's all a slippery slope. For example, I know a lot of
programmers that just can't wait to use the latest C++ features of the
latest language version. But that's not a friendly way to code, because
it's the least portable.
On 8/20/19 2:00 PM, Jeff Diamond wrote:
Why? The performance in blis comes from hand written assembly
language kernels that do not require compiler support. I just request
that you create an archive of the older version of blis so we can
still use it in our company. Not trying to tie your hands here - if
you need it, you need it. But it's all a slippery slope. For
example, I know a lot of programmers that just can't wait to use the
latest C++ features of the latest language version. But that's not a
friendly way to code, because it's the least portable.
On 8/20/19 1:57 PM, Devin Matthews wrote:
>
> I tend to side with @fgvanzee <https://github.com/fgvanzee> because
> users will need somewhat up-to-date compilers (and assemblers!) in
> order to make use of the latest instruction set features and
> processor tunings anyways.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#324?email_source=notifications&email_token=AHGHJK62JRI4FFBJQQ64M73QFQ5CLA5CNFSM4INW6WSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4XKHHY#issuecomment-523150239>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AHGHJK5NBZCEEYFJ3GPZJT3QFQ5CLANCNFSM4INW6WSA>.
>
What about binutils? If ld doesn't know what vfmadd231pd is then you're hosed. But in any case I think the modifications needed to use an older gcc are pretty minor, most of the configuration automaticness is for people who need the helping hand.
Le sigh. I'm torn between trying to unconditionally help out users in tough spots with really old compilers and drawing a line so that those users apply the pressure needed to get their sysadmins to update their software (which is almost always the right answer then the software in question is older than 3-4 years).
@jdiamondGitHub Version gcc 4.4 is over a decade old. If you really are stuck on software that old, man, I am really sorry. (In April 2009, BLIS did not exist. OpenBLAS likely did not exist, either--if it did, it was mere days old.) But at some point, we have to say, No, you may not compile BLIS on your Hewlett-Packard 486 desktop that you purchased from CompUSA in 1996. :)
I'll spend some time thinking about whether there might be a hack (and it will be kinda ugly) to support any weird systems where binutils is up to snuff but gcc is "too told" by configure's standards. It would probably involve passing the gcc version information into the Makefile so that make can conditionally do something like s/-march=haswell/-march=core-avx2/g
I feel your pain and just wanted to explain...
The main issue we have is the CentOS/RedHat system. I don't claim to
fully understand why, but RadHat by design keeps their software stack at
least 5 years old. One explanation I've heard is that they don't want
to support developers, another is that they want to be able to provide
something that's already well understood and safe. Either way, it keeps
their costs down. And then other linux variants inherit from Red Hat.
So it's far from the idea of having a 486 and no administrator
privileges. Red Hat, and it's derivatives, are practically a business
standard.
BTW, when we've complained about that, we're told "just build your
system somewhere else and drop the binaries on Red Hat / etc".
Unfortunately, we deal with a lot of software systems that need to be
recompiled for a specific configuration, or even all the time. Does
anyone know if Ubuntu has a variant that's professionally supported for
business? I'm not up on the Linux family tree.
"Professionally supported" as in you want to pay somebody money? If so, I think SUSE is probably the only other "business standard", but Ubuntu LTS releases are pretty easy to maintain.
Well, that would be a great help - let's start posting some directions.
Maybe even some scripts to make a user level install easy. I've found
installing gcc an incredible pain because you have to build so many sub
projects, make sure all the libraries are visible to other libraries,
leverage existing versions, build libc, etc. Often I give up on targets
where I have no package install access.
Don't think of it as a built-in assembler. Think of it as providing any
easy way for a user to install a more recent assembler, or bin utils, or
whatever bils needs (whatever form it takes - it could be a simple
script). But let's step back a sec...
All compilers are out of date (and I don't even use gcc), so the real
question here is "how recent should they be"? We're talking about a
corporate policy that forces SW to be at least 7 years old. Is this an
absolute or relative issue? Once we're past 4.8.5, will you be good?
And is this actually a big issue for blis, or did you just hit a minor
hiccup here with the syntax of certain flags that changed around 4.9?
Let's reverse the question: What's the minimum version of gcc and
binutils you actually need? And what for? And then which operating
systems can blis run on as a result? I see multiple issues here, but I'm
guessing the primary technical one is keeping the blis kernels able to
target the latest processors. Don't view backwards compatibility as a
generic policy - view it as a specific technical issue: What are the
concrete issues with specific versions of gcc or binutils?
If you tell us about your technical issues, we can help you with the
broader decisions, such as: which OSes do those versions exclude, with
how many users? What might it mean for that community if blis supported
those OSes? Do other libraries (e.g. MKL, AMD, ARM) support that
community? How easy would it be to upgrade those systems? Could we
provide binaries, etc?
I'm very happy to help you enable blis on massive corporate
infrastructure, so you can focus on the part of development you love.
@jdiamondGitHub from the few times I've installed gcc from source, I imagine that most of your problems are solved by running the contrib/download_prerequisites script before configuring. Of course this step is poorly documented and rightly should be part of the build system by default but oh well.
(But,
as @devinamatthews pointed out, if their `binutils` installation is
not up-to-date, then no amount of patching on our side will help.)
The system binutils supports the same targets as the system compiler. A
different binutils is relevant iff you use a more recent gcc for
micro-architecture support. The rpm spec requires the devtoolset
binutils as well as the compiler (and I think the gcc rpm should do that
itself).
If somebody has Haswell gear but doesn’t upgrade to GCC and binutils that
supper AVX2, they are losing ~50% of performance. If people don’t care
about performance, why not use Netlib? Or just compile BLIS with Ivy
Bridge settings and lose the 2x and not hit any issues with -march flags
and binutils.
Or use the BLIS rpm packages, but perhaps I just shouldn't bother.
All compilers are out of date (and I don't even use gcc),
?? I guess that at least explains the rubbish remarks.
I'm very happy to help you enable blis on massive corporate
infrastructure, so you can focus on the part of development you love.
I've put significant effort into HPC support on EL6/7, though it's a
fairly unrewarding experience. Could you please articulate exactly what
the problem is with the BLIS packages specifically (apart from the lack
of non-x86 dynamic dispatch)? You'll probably even get reasonably
timely volunteer support.
If you need KNL/SKX support, you won't be on EL6 anyhow, but you can
disassemble the packages to see the avx512 instructions you seem to be
saying can't be generated on a pure RHEL system. As I said, you don't
even need privileges if your system support is so bad.
[I'm not an apologist for Red Hat, as you can see on the Fedora devel
list.]
Activity
fgvanzee commentedon Aug 20, 2019
Thanks, Dave. I'm fine with bumping the minimum gcc version to 4.8.
fgvanzee commentedon Aug 20, 2019
@loveshack Sorry, I misread your comment. I thought you were saying that the aforementioned flag syntax wasn't supported until version 4.8. I'll try to dig into this to see if I can find out when gcc switched their
-marchsyntax.fgvanzee commentedon Aug 20, 2019
Here's what I found in the gcc documentation:
-marchwas still using the awfulcorei7-avx,core-avx-i,core-avx2labels.-marchhad transitioned to accepting (and promoting the use of)sandybridge,ivybridge,haswelllabels.So presumably the switchover happened sometime between those two versions.
Whether we draw the line at 4.7, 4.8, or 4.9.x doesn't matter to me--they're all ancient. So I'm fine bumping the minimum required version to 4.9.4.
What do you think, @devinamatthews?
devinamatthews commentedon Aug 20, 2019
This depends on whether you want to support system compilers or assume that people will get a newer version through some mechanism. For example, CentOS 7 is still using gcc 4.8.5.
fgvanzee commentedon Aug 20, 2019
Thanks, good point. I'm fine requiring those individuals to get a newer version if they want to compile BLIS.
jdiamondGitHub commentedon Aug 20, 2019
devinamatthews commentedon Aug 20, 2019
I tend to side with @fgvanzee because users will need somewhat up-to-date compilers (and assemblers!) in order to make use of the latest instruction set features and processor tunings anyways.
jdiamondGitHub commentedon Aug 20, 2019
jdiamondGitHub commentedon Aug 20, 2019
devinamatthews commentedon Aug 20, 2019
What about binutils? If ld doesn't know what
vfmadd231pdis then you're hosed. But in any case I think the modifications needed to use an older gcc are pretty minor, most of the configuration automaticness is for people who need the helping hand.fgvanzee commentedon Aug 20, 2019
Le sigh. I'm torn between trying to unconditionally help out users in tough spots with really old compilers and drawing a line so that those users apply the pressure needed to get their sysadmins to update their software (which is almost always the right answer then the software in question is older than 3-4 years).
@jdiamondGitHub Version gcc 4.4 is over a decade old. If you really are stuck on software that old, man, I am really sorry. (In April 2009, BLIS did not exist. OpenBLAS likely did not exist, either--if it did, it was mere days old.) But at some point, we have to say, No, you may not compile BLIS on your Hewlett-Packard 486 desktop that you purchased from CompUSA in 1996. :)
I'll spend some time thinking about whether there might be a hack (and it will be kinda ugly) to support any weird systems where binutils is up to snuff but gcc is "too told" by
configure's standards. It would probably involve passing the gcc version information into theMakefileso thatmakecan conditionally do something likes/-march=haswell/-march=core-avx2/gjdiamondGitHub commentedon Aug 20, 2019
jdiamondGitHub commentedon Aug 20, 2019
devinamatthews commentedon Aug 20, 2019
"Professionally supported" as in you want to pay somebody money? If so, I think SUSE is probably the only other "business standard", but Ubuntu LTS releases are pretty easy to maintain.
isuruf commentedon Aug 20, 2019
@jdiamondGitHub, what's the glibc version on your system?
16 remaining items
jeffhammond commentedon Aug 21, 2019
jeffhammond commentedon Aug 21, 2019
fgvanzee commentedon Aug 21, 2019
Am I the only one who thinks the built-in assembler idea is kind of nuts? At what point is it okay to just require a more recent binutils?
dnparikh commentedon Aug 21, 2019
Even better, we could starting writing BLIS in opcodes! ;)
jdiamondGitHub commentedon Aug 21, 2019
jdiamondGitHub commentedon Aug 21, 2019
devinamatthews commentedon Aug 22, 2019
@jdiamondGitHub from the few times I've installed gcc from source, I imagine that most of your problems are solved by running the
contrib/download_prerequisitesscript before configuring. Of course this step is poorly documented and rightly should be part of the build system by default but oh well.jdiamondGitHub commentedon Aug 22, 2019
loveshack commentedon Aug 22, 2019
loveshack commentedon Aug 22, 2019
loveshack commentedon Aug 22, 2019
jeffhammond commentedon Aug 23, 2019
devinamatthews commentedon Aug 6, 2020
So, I think this is actually fixed... but with the lovely color commentary it's hard to tell. Please reopen if that is not the case.
Add S/D/C/Z GEMV kernels and multithreading (flame#324)