.buildInfo -> .hipInfo & .version -> .hipVersion

Change-Id: I8023f4349621fd81c58615737b7e897649e0f7ca
This commit is contained in:
Maneesh Gupta
2016-10-11 11:13:41 +05:30
parent dc1042ce6d
commit 1329be958a
5 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -52,9 +52,9 @@ $verbose = $ENV{'HIPCC_VERBOSE'} // 0;
$HIP_PATH=$ENV{'HIP_PATH'} // dirname (dirname $0); # use parent directory of hipcc
#---
# Read .buildInfo
# Read .hipInfo
my %hipConfig = ();
parse_config_file("$HIP_PATH/lib/.buildInfo", \%hipConfig);
parse_config_file("$HIP_PATH/lib/.hipInfo", \%hipConfig);
#---
#HIP_PLATFORM controls whether to use NVCC or HCC for compilation:
+2 -2
View File
@@ -86,9 +86,9 @@ if ($HIP_PLATFORM eq "nvcc") {
};
#---
# Read .version
# Read .hipVersion
my %hipVersion = ();
parse_config_file("$HIP_PATH/bin/.version", \%hipVersion);
parse_config_file("$HIP_PATH/bin/.hipVersion", \%hipVersion);
$HIP_VERSION_MAJOR = $hipVersion{'HIP_VERSION_MAJOR'} // $HIP_BASE_VERSION_MAJOR;
$HIP_VERSION_MINOR = $hipVersion{'HIP_VERSION_MINOR'} // $HIP_BASE_VERSION_MINOR;
$HIP_VERSION_PATCH = $hipVersion{'HIP_VERSION_PATCH'} // "0";