Feature #620

Include compiler/toolchain information in volk_profile

Added by Doug Geiger 10 months ago. Updated 8 months ago.

Status:ClosedStart date:11/30/2013
Priority:LowDue date:
Assignee:Tom Rondeau% Done:

0%

Category:volk
Target version:release-3.7.3
Resolution:fixed

Description

It would be useful to include the compiler name/version information in volk_profile to help understand the effects of various toolchains (e.g. clang vs. gcc, etc.) as well as the effects of different versions (e.g. gcc 4.6.x vs. 4.7.x, etc.).

It would likely be helpful in the future to include this information in libvolk to be accessible by the dispatcher, however for the time being simply printing the compiler name/version with volk_profile will be useful for tracking performance with toolchain variation.

A candidate patch is attached: this simply uses the BOOST_COMPILER macro defined by Boost at compile time. Since volk_profile already required Boost we are not adding an additional dependency.

0001-Include-compiler-information-in-volk_profile.patch Magnifier - Patch to include compiler information in initial output of volk_profile (1018 Bytes) Doug Geiger, 11/30/2013 11:40 pm

History

#1 Updated by Johnathan Corgan 10 months ago

  • Category set to volk

#2 Updated by Tom Rondeau 9 months ago

  • Status changed from New to Resolved
  • Assignee set to Tom Rondeau
  • Target version set to release-3.7.3
  • Resolution set to fixed

Implemented this feature by using the info at build time. We now create a volk-config-info file that allows you get various build information about volk, including the compiler info, version, and flags used during the build.

d71714d4c6f425cd94bdf95e789d8b0489ad50b7

volk-config-info
Program options: volk-config-info [options]:
-h [ --help ] print help message
--prefix print VOLK installation prefix
--builddate print VOLK build date (RFC2822 format)
--cc print VOLK C compiler version
--cflags print VOLK CFLAGS
--all-machines print VOLK machines built into library
--avail-machines print VOLK machines the current platform can use
--machine print the VOLK machine that will be used
-v [ --version ] print VOLK version

#3 Updated by Tom Rondeau 8 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF