Updated correct API for reading error string (#2786)

Este cometimento está contido em:
Sarbojit2019 criou e GitHub cometeu 2022-07-07 12:08:01 +05:30
1 ascendente 76ce7131d9
cometimento 4514f35084
1 ficheiro modificado
+2 -2
+2 -2
Ver ficheiro
@@ -83,12 +83,12 @@ int main(int argc, char* argv[]) {
defaultCUMask.push_back(temp);
}
str_out = hipGetErrorString(hipExtStreamGetCUMask(0, cuMask.size(), 0));
str_out = hipGetErrorName(hipExtStreamGetCUMask(0, cuMask.size(), 0));
if ((str_err.compare(str_out)) != 0) {
failed("hipExtStreamGetCUMask returned wrong error code!");
}
str_out = hipGetErrorString(hipExtStreamGetCUMask(0, 0, &cuMask[0]));
str_out = hipGetErrorName(hipExtStreamGetCUMask(0, 0, &cuMask[0]));
if ((str_err.compare(str_out)) != 0) {
failed("hipExtStreamGetCUMask returned wrong error code!");
}