don't update maxComputeUnits_ if any exception occurs during conversion of global CU mask string
Change-Id: I7664809fe84d7422b18b1272ffeb642e03a39f1a
[ROCm/clr commit: 72277c29b0]
This commit is contained in:
committed by
Aryan Salmanpour
parent
df7f58d43d
commit
265afae619
@@ -2727,6 +2727,7 @@ void Device::getGlobalCUMask(std::string cuMaskStr) {
|
||||
ul = std::stoul(temp, 0, 16);
|
||||
} catch (const std::invalid_argument&) {
|
||||
info_.globalCUMask_ = {};
|
||||
availCUs = 0;
|
||||
break;
|
||||
}
|
||||
info_.globalCUMask_.push_back(static_cast<uint32_t>(ul));
|
||||
|
||||
Reference in New Issue
Block a user