macos build fixes

This commit is contained in:
Aaron Miller
2023-09-26 11:38:02 -07:00
committed by Adam Treat
parent d90d003a1d
commit 507753a37c
2 changed files with 2 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ LLModel *LLModel::Implementation::construct(const std::string &modelPath, std::s
#if defined(__APPLE__) && defined(__arm64__) // FIXME: See if metal works for intel macs
if (buildVariant == "auto") {
size_t total_mem = getSystemTotalRAMInBytes();
impl = implementation(f, "metal");
impl = implementation(modelPath.c_str(), "metal");
if(impl) {
LLModel* metalimpl = impl->m_construct();
metalimpl->m_implementation = impl;