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
4c4a8ea4
Commit
4c4a8ea4
authored
Sep 01, 2018
by
Tatsuya Nishiyama
Committed by
Tianqi Chen
Aug 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CUDA][TVM] fix constructing invalid command line string for nvcc (#1674)
parent
fae3f60c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
python/tvm/contrib/nvcc.py
+9
-3
No files found.
python/tvm/contrib/nvcc.py
View file @
4c4a8ea4
...
...
@@ -28,7 +28,7 @@ def compile_cuda(code,
arch : str
The architecture
options : str
options : str
or list of str
The additional options
path_target : str, optional
...
...
@@ -59,10 +59,16 @@ def compile_cuda(code,
cmd
=
[
"nvcc"
]
cmd
+=
[
"--
%
s"
%
target
,
"-O3"
]
cmd
+=
[
"-arch"
,
arch
]
cmd
+=
[
"-o"
,
file_target
]
if
options
:
cmd
+=
options
if
isinstance
(
options
,
str
):
cmd
+=
[
options
]
elif
isinstance
(
options
,
list
):
cmd
+=
options
else
:
raise
ValueError
(
"options must be str or list of str"
)
cmd
+=
[
"-o"
,
file_target
]
cmd
+=
[
temp_code
]
proc
=
subprocess
.
Popen
(
...
...
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