Print llvm source by default in ROCMModuleNode::GetSource (#3662)
authorThomas Viehmann <tv.github@beamnet.de>
Tue, 30 Jul 2019 09:30:46 +0000 (11:30 +0200)
committermasahi <masahi129@gmail.com>
Tue, 30 Jul 2019 09:30:46 +0000 (18:30 +0900)
src/runtime/rocm/rocm_module.cc

index 6531f97..0336bae 100644 (file)
@@ -79,7 +79,7 @@ class ROCMModuleNode : public runtime::ModuleNode {
 
   std::string GetSource(const std::string& format) final {
     if (format == fmt_) { return data_; }
-    if (format == "llvm") { return hip_source_; }
+    if (format == "llvm" || format == "") { return hip_source_; }
     if (format == "asm") { return assembly_; }
     return "";
   }