updated version query to also include git version info. Delineate
between development mode (git clone) and release version where the git sha is stored in top-level VERSION.sha file. Closes #20. Signed-off-by: Karl W. Schulz <karl.schulz@amd.com>
This commit is contained in:
committed by
Karl W. Schulz
parent
0d314be72d
commit
4fbe1891f3
+8
-4
@@ -43,10 +43,11 @@ from common import (
|
||||
OMNIPERF_HOME,
|
||||
PROG,
|
||||
SOC_LIST,
|
||||
VER,
|
||||
DISTRO_MAP,
|
||||
) # Import global variables
|
||||
|
||||
from common import getVersion
|
||||
|
||||
################################################
|
||||
# Helper Functions
|
||||
################################################
|
||||
@@ -305,7 +306,7 @@ def run_prof(fname, workload_dir, perfmon_dir, cmd, verbose):
|
||||
)
|
||||
|
||||
|
||||
def omniperf_profile(args):
|
||||
def omniperf_profile(args,VER):
|
||||
# Verify valid target
|
||||
if args.target not in SOC_LIST:
|
||||
parse.print_help(sys.stderr)
|
||||
@@ -420,6 +421,9 @@ def main():
|
||||
parse(my_parser)
|
||||
args = my_parser.parse_args()
|
||||
|
||||
vData = getVersion()
|
||||
VER = vData['version']
|
||||
|
||||
if args.mode == None:
|
||||
throw_parse_error(
|
||||
my_parser,
|
||||
@@ -517,8 +521,8 @@ def main():
|
||||
|
||||
# Profile only
|
||||
else:
|
||||
print("\n--------\nProfile only\n--------\n")
|
||||
omniperf_profile(args)
|
||||
print("\n-------------\nProfile only\n-------------\n")
|
||||
omniperf_profile(args,VER)
|
||||
|
||||
##############
|
||||
# DATABASE MODE
|
||||
|
||||
Reference in New Issue
Block a user