[pl-seminar] talk today: Stochastic Optimization of x86_64 Binaries


Date: Thu, 17 Jul 2014 09:14:56 -0500
From: Ben Liblit <liblit@xxxxxxxxxxx>
Subject: [pl-seminar] talk today: Stochastic Optimization of x86_64 Binaries
Reminder: Eric Schkufza from Stanford University will be giving a PL seminar talk today on "Stochastic Optimization of x86_64 Binaries". The talk starts at 3pm in room 4310 CS. I hope to see you there!

<http://www.cs.wisc.edu/events/1450>

*Abstract:*

The optimization of short sequences of loop-free fixed-point x86_64 code sequences is an important problem in high-performance computing. Unfortunately, the competing constraints of transformation correctness and performance improvement often force even special purpose compilers to produce sub-optimal code. We show that by encoding these constraints as terms in a cost function, and using a Markov Chain Monte Carlo sampler to rapidly explore the space of all possible programs, we are able to generate aggressively optimized versions of a given target program. Beginning from binaries compiled by gcc -O0, we are able to produce provably correct code sequences that either match or outperform the code produced by gcc -O3, and in some cases expert hand-written assembly.

Because most high-performance applications contain floating-point computations, we extend our technique to this domain and show a novel approach to trading full floating-point precision for further increases in performance. We demonstrate the ability to generate reduced precision implementations of Intel’s handwritten C numerics library that are up to six times faster than the original code, and achieve end-to-end speedups of over 30% on a direct numeric simulation and a ray tracer. Because optimizations that contain floating-point computations are not amenable to formal verification using the state of the art, we present a technique for characterizing maximum error and providing strong evidence for correctness.

*Bio:*

Eric Schkufza is a PhD candidate at Stanford University (a few signatures away from graduating!) working with Professor Alex Aiken. He is interested in applying machine learning and stochastic search techniques to the design of optimizing compilers.
[← Prev in Thread] Current Thread [Next in Thread→]