Skip to content

Commit 35191a6

Browse files
authored
Merge pull request #11 from SharpAI/fix/suppress-metal-compile-logging
Suppress verbose Metal compile logging
2 parents 9c5519f + e707b7f commit 35191a6

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

Source/Cmlx/mlx/mlx/backend/metal/device.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -529,11 +529,6 @@ MTL::Library* Device::build_library_(const std::string& source_string) {
529529
auto options = MTL::CompileOptions::alloc()->init();
530530
options->setFastMathEnabled(false);
531531
options->setLanguageVersion(get_metal_version());
532-
#ifndef NDEBUG
533-
if (options->languageVersion() >= MTL::LanguageVersion3_2) {
534-
options->setEnableLogging(true);
535-
}
536-
#endif
537532
auto mtl_lib = device_->newLibrary(ns_code, options, &error);
538533
options->release();
539534

0 commit comments

Comments
 (0)