init at most one vulkan device, submodule update

fixes issues w/ multiple of the same gpu
This commit is contained in:
Aaron Miller 2023-09-13 12:32:42 -07:00
parent 86e862df7e
commit 6f038c136b
2 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit 2f7732b667b5c7786da0fa59fd612cc87b04b325
Subproject commit e5ab32aab84c9252e865114483dbd7505e5caabb

View File

@ -279,8 +279,10 @@ bool ChatLLM::loadModel(const ModelInfo &modelInfo)
m_llModelInfo.model->initializeGPUDevice(devices.front());
} else {
for (LLModel::GPUDevice &d : availableDevices) {
if (QString::fromStdString(d.name) == requestedDevice)
if (QString::fromStdString(d.name) == requestedDevice) {
m_llModelInfo.model->initializeGPUDevice(d);
break;
}
}
}
}