Include compiler/toolchain information in volk_profile
|Assignee:||Tom Rondeau||% Done:|
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.
#2 Updated by Tom Rondeau 7 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.
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