Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen committed Apr 26, 2023
1 parent 0a9859b commit f2a94ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/target/opt/build_metal_off.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
namespace tvm {
namespace runtime {

Module MetalModuleCreate(std::string data, std::string fmt,
std::unordered_map<std::string, FunctionInfo> fmap, std::string source) {
Module MetalModuleCreate(std::unordered_map<std::string, std::string> smap,
std::unordered_map<std::string, FunctionInfo> fmap, std::string fmt,
std::string source) {
LOG(WARNING) << "Metal runtime not enabled, return a source module...";
return codegen::DeviceSourceModuleCreate(data, fmt, fmap, "metal");
return codegen::DeviceSourceModuleCreate(source, fmt, fmap, "metal");
}

} // namespace runtime
Expand Down
1 change: 1 addition & 0 deletions src/target/source/codegen_metal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <algorithm>
#include <string>
#include <vector>
#include <unordered_map>

#include "../../runtime/metal/metal_module.h"
#include "../../runtime/thread_storage_scope.h"
Expand Down

0 comments on commit f2a94ea

Please sign in to comment.