projects
/
platform
/
upstream
/
tvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1d4337
)
Print llvm source by default in ROCMModuleNode::GetSource (#3662)
author
Thomas Viehmann
<tv.github@beamnet.de>
Tue, 30 Jul 2019 09:30:46 +0000
(11:30 +0200)
committer
masahi
<masahi129@gmail.com>
Tue, 30 Jul 2019 09:30:46 +0000
(18:30 +0900)
src/runtime/rocm/rocm_module.cc
patch
|
blob
|
history
diff --git
a/src/runtime/rocm/rocm_module.cc
b/src/runtime/rocm/rocm_module.cc
index
6531f97
..
0336bae
100644
(file)
--- a/
src/runtime/rocm/rocm_module.cc
+++ b/
src/runtime/rocm/rocm_module.cc
@@
-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 "";
}