Skip to content

Commit

Permalink
Print llvm source by default in ROCMModuleNode::GetSource (apache#3662)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-vi authored and wweic committed Aug 9, 2019
1 parent 35d9e4b commit 31ebae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/rocm/rocm_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
}
Expand Down

0 comments on commit 31ebae8

Please sign in to comment.