Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tvm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cld
ml
tvm
Commits
1b2e553b
Commit
1b2e553b
authored
6 years ago
by
masahi
Committed by
Tianqi Chen
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[ROCM] Make sure all bit code files exist (#2323)
parent
d5164466
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/tvm/contrib/rocm.py
+3
-2
3 additions, 2 deletions
python/tvm/contrib/rocm.py
with
3 additions
and
2 deletions
python/tvm/contrib/rocm.py
+
3
−
2
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
)])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment