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

Commit

Permalink
Merge pull request #111 from agunashe/amd/dev/agunashe/5_7_hipVersion
Browse files Browse the repository at this point in the history
SWDEV-411709 - default hip version to 5.7 and filename/path for .hipVersion
  • Loading branch information
kzhuravl authored Jul 21, 2023
2 parents aef7540 + 0591520 commit 9825bb5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/hipvars.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use Cwd;
use File::Basename;

$HIP_BASE_VERSION_MAJOR = "5";
$HIP_BASE_VERSION_MINOR = "5";
$HIP_BASE_VERSION_MINOR = "7";
$HIP_BASE_VERSION_PATCH = "0";

#---
Expand Down 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 9825bb5

Please sign in to comment.