Commit 3da1e969 authored by jungpark-mlir's avatar jungpark-mlir
Browse files

Update mlir.cpp

parent e0303225
...@@ -590,10 +590,10 @@ struct mlir_program ...@@ -590,10 +590,10 @@ struct mlir_program
#else #else
void find_target() void find_target()
{ {
std::string tname = get_device_name(); target_arch = get_device_name();
// HACK: Since MLIR can't handle the full target name // HACK: Since MLIR can't handle the full target name
target_name = trim(split_string(tname, ':').front()); target_chip = trim(split_string(target_arch, ':').front());
if(tname.size() != target_name.size()) if(target_arch.size() != target_chip.size())
std::cout std::cout
<< "*************** WARNING: MLIR may not compile the correct target features for: " << "*************** WARNING: MLIR may not compile the correct target features for: "
<< tname << std::endl; << tname << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment