ROCm / rocprofiler-compute

Advanced Profiling and Analytics for AMD Hardware
https://rocm.docs.amd.com/projects/omniperf/en/latest/
MIT License
135 stars 49 forks source link

include git sha in release tarball #20

Closed koomie closed 1 year ago

koomie commented 1 year ago

PR #20 enables this functionality. The cmake configuration from within a git clone now generates a VERSION.sha file with the short version of latest commit sha. This file is included in the release tarball and is installed along with the VERSION file to desired install prefix.

The omniperf version output has been updated to include both the symantic version and git sha. From within a git clone, the git sha is determined dynamically. From a release tarball, the version is provided via the VERSION.sha file. Example output as follows:

Development mode (user is running within cloned repo)

$ ./src/omniperf --version
----------------------------------------
Omniperf version: 1.0.4-dev (dev)
Git revision:     04141da
----------------------------------------

From source tarball

$ omniperf --version
----------------------------------------
Omniperf version: 1.0.4-dev (release)
Git revision:     08463f7
----------------------------------------