Merge 'develop' into 'amd-staging'

Change-Id: I94bd7bbc524465be9d6c549be29a276fd0126e13
This commit is contained in:
Jenkins
2023-02-14 07:00:05 +00:00
+4 -8
View File
@@ -148,17 +148,13 @@ static inline bool IsGfx11() {
hipDeviceProp_t props{};
HIP_CHECK(hipGetDevice(&device));
HIP_CHECK(hipGetDeviceProperties(&props, device));
// Get GCN Arch Name and compare to check if it is gfx11
std::string arch = std::string(props.gcnArchName);
auto pos = arch.find(":");
auto pos = arch.find("gfx11");
if (pos != std::string::npos)
arch = arch.substr(0, pos);
if(arch.size() >= 5)
arch = arch.substr(0,5);
return (arch == std::string("gfx11")) ? true : false;
return true;
else
return false;
#else
std::cout<<"Have to be either Nvidia or AMD platform, asserting"<<std::endl;
assert(false);