Compilers: BFloat(16) in LLVM, GNU Compiler Collection 10.1 and "-O3"

-
BFloat further steps
We're about to merge BFloat IR support [1], after discussions on Phabricator [2] and the mailing list [3]. I think the responses have been quite positive towards this direction, but I would like to make sure we're also happy with what comes next.
We would need changes in both SelectionDAG and GlobalISel to support the BFloat type in the backend:
For SelectionDAG the changes are relatively straightforward. We'd need an MVT type for BFloat and for BFloat vectors, and we'd need changes in the various backends to support the new types. I've made a couple of patches to implement the MVT type and add support for AArch64. Together with general frontend support and ACLE intrinsics we can compile BFloat C code for AArch64.
For GlobalISel there's a bit more work to do. I'm not too knowledgeable about GlobalISel myself, but there was some discussion on this on another list thread [4] between the GlobalISel folks. The gist is that GlobalISel at the moment can't differentiate between different float types of the same bit-width. During the course of the list discussion it seems people were in favour of adding more type information to LLT to disambiguate floating point types.
Do we feel comfortable with this general direction for BFloat?
-
BFloat16 Support About To Land Within LLVM
The LLVM compiler stack is about to merge its support for the BFloat16 floating-point format, including the BF16 C language support.
BFloat16 is the 16-bit number format designed for machine learning algorithms for lessened storage requirements and greater performance.
-
What’s the point: GCC 10.1, CockroachDB 20.1, Scylla 4, VS Code, and AWS reviews pricing
Version 10.1 of the GNU Compiler Collection has landed with new command-line options, a variety of optimisation improvements, and enhancements for working with the C-family, Fortran, AArch64 and Arm. Among the changes are an option to enable a new static analysis pass to help devs get rid of common errors, and an access function and type attribute “to describe how a function accesses objects passed to it”.
The major release also offers support for OpenACC 2.6 in the C, C++, and Fortran compilers, and includes implementations of additional C++20 and OpenMP 5.0 features, leading GCC closer to being fully able to work with the standard.
-
Upstream Linux Developers Against "-O3" Optimizing The Kernel
The upstream Linux kernel developers have come out against a proposal to begin using the "-O3" optimization level when compiling the open-source code-base with the GCC 10 compiler or newer.
Last week a patch was proposed to set the default compiler optimization level to -O3 from -O2 for the kernel when using the newly-released GCC 10 compiler or later. That patch by WireGuard lead developer Jason Donenfeld explained, "GCC 10 appears to have changed -O2 in order to make compilation time faster when using -flto, seemingly at the expense of performance, in particular with regards to how the inliner works. Since -O3 these days shouldn't have the same set of bugs as 10 years ago, this commit defaults new kernel compiles to -O3 when using gcc >= 10."
-

- Login or register to post comments
Printer-friendly version- 3038 reads
PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
digiKam 7.7.0 is released
After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release.
|
Dilution and Misuse of the "Linux" Brand
|
Samsung, Red Hat to Work on Linux Drivers for Future Tech
The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world.
Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility.
|
today's howtos
|








.svg_.png)
Content (where original) is available under CC-BY-SA, copyrighted by original author/s.

InfoWorld's Paul Krill
[Older] GCC 10 series compilers arrive in major upgrade