Skip to content

Commit

Permalink
init at most one vulkan device, submodule update
Browse files Browse the repository at this point in the history
fixes issues w/ multiple of the same gpu
  • Loading branch information
apage43 committed Sep 13, 2023
1 parent 86e862d commit 6f038c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gpt4all-backend/llama.cpp-mainline
4 changes: 3 additions & 1 deletion gpt4all-chat/chatllm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
}
Expand Down

0 comments on commit 6f038c1

Please sign in to comment.