|
|
@ -27,26 +27,27 @@ int main(int argc, char* argv[])
|
|
|
|
QPixmap pixmap("D:/Release/splash.jpg");
|
|
|
|
QPixmap pixmap("D:/Release/splash.jpg");
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#if defined EquipmentModel
|
|
|
|
#if defined EquipmentModel
|
|
|
|
//比较设备型号标志文件-----------------------------------------------------------------------------
|
|
|
|
//比较设备型号文件-----------------------------------------------------------------------------
|
|
|
|
string ider;
|
|
|
|
string ider;
|
|
|
|
string name = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.5/include/thrust/async/flag.txt";//设备型号标志文件
|
|
|
|
string name = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.5/include/thrust/async/flag.txt";//标志文件
|
|
|
|
std::ifstream file_(name.c_str());
|
|
|
|
std::ifstream file_(name.c_str());
|
|
|
|
if (file_.good())
|
|
|
|
if (file_.good())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
getline(file_, ider);
|
|
|
|
getline(file_, ider);
|
|
|
|
file_.close();
|
|
|
|
file_.close();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ider = "Default";
|
|
|
|
ider = "Default";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cout << "设备型号:" << ider << endl;
|
|
|
|
if(ider!= EquipmentModel)
|
|
|
|
if (ider != EquipmentModel)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
QMessageBox::information(NULL, QStringLiteral("系统自检失败"), QStringLiteral("设备型号匹配失败"), QMessageBox::Ok);
|
|
|
|
QMessageBox::information(NULL, QStringLiteral("系统自检失败"), QStringLiteral("设备型号匹配失败"), QMessageBox::Ok);
|
|
|
|
exit(0);
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//比较设备型号标志文件-----------------------------------------------------------------------------
|
|
|
|
//比较设备型号标志文件-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#else
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|