Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
SWDEV-411709 - hipvars fix path/filename for .hipVersion
Browse files Browse the repository at this point in the history
Linux file is named as 'version' in share/hip location
Windows file is named as '.hipVersion' in bin location
HIP Major/Minor values in hipcc needs to be revisisted since hipcc is
moved to a seperate project.
  • Loading branch information
agunashe committed Jul 18, 2023
1 parent 03a9318 commit 0591520
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/hipvars.pm
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ if ($HIP_COMPILER eq "clang") {
#---
# Read .hipVersion
my %hipVersion = ();
parse_config_file("$hipvars::HIP_PATH/bin/.hipVersion", \%hipVersion);
if ($isWindows) {
parse_config_file("$hipvars::HIP_PATH/bin/.hipVersion", \%hipVersion);
} else {
parse_config_file("$hipvars::HIP_PATH/share/hip/version", \%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'} // $HIP_BASE_VERSION_PATCH;
Expand Down

0 comments on commit 0591520

Please sign in to comment.