Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
1b2e553b
Commit
1b2e553b
authored
Dec 25, 2018
by
masahi
Committed by
Tianqi Chen
Dec 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ROCM] Make sure all bit code files exist (#2323)
parent
d5164466
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
python/tvm/contrib/rocm.py
+3
-2
No files found.
python/tvm/contrib/rocm.py
View file @
1b2e553b
"""Utility for ROCm backend"""
import
subprocess
from
os.path
import
join
from
os.path
import
join
,
exists
from
.
import
util
from
.._ffi.base
import
py_str
from
..api
import
register_func
,
convert
...
...
@@ -79,4 +79,5 @@ def callback_rocm_bitcode_path(rocdl_dir="/opt/rocm/lib/"):
"oclc_unsafe_math_off.amdgcn.bc"
,
"oclc_unsafe_math_on.amdgcn.bc"
]
return
convert
([
join
(
rocdl_dir
,
bitcode
)
for
bitcode
in
bitcode_files
])
paths
=
[
join
(
rocdl_dir
,
bitcode
)
for
bitcode
in
bitcode_files
]
return
convert
([
path
for
path
in
paths
if
exists
(
path
)])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment