File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ THE SOFTWARE.
52
52
# define HCC_AMDGPU_TARGET " HCC_AMDGPU_TARGET"
53
53
54
54
# define HIP_BASE_VERSION_MAJOR " 6"
55
- # define HIP_BASE_VERSION_MINOR " 0 "
55
+ # define HIP_BASE_VERSION_MINOR " 1 "
56
56
# define HIP_BASE_VERSION_PATCH " 0"
57
57
# define HIP_BASE_VERSION_GITHASH " 0"
58
58
@@ -347,7 +347,11 @@ void HipBinBase::readHipVersion() {
347
347
string hipVersion;
348
348
const string& hipPath = getHipPath ();
349
349
fs::path hipVersionPath = hipPath;
350
- hipVersionPath /= " bin/.hipVersion" ;
350
+ const OsType& os = getOSInfo ();
351
+ if (os == windows)
352
+ hipVersionPath /= " bin/.hipVersion" ;
353
+ else
354
+ hipVersionPath /= " share/hip/version" ;
351
355
map<string, string> hipVersionMap;
352
356
hipVersionMap = hipBinUtilPtr_->parseConfigFile (hipVersionPath);
353
357
string hip_version_major, hip_version_minor,
You can’t perform that action at this time.
0 commit comments