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
cc71d505
Commit
cc71d505
authored
Mar 25, 2018
by
Tianqi Chen
Committed by
GitHub
Mar 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CONTRIB] Patch nnvcc to generate error when build the empty result (#1049)
parent
00d3cf11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
README.md
+1
-1
python/tvm/contrib/nvcc.py
+5
-2
No files found.
README.md
View file @
cc71d505
TVM:
Tensor IR Stack for Deep Learning Systems
<img src=https://raw.githubusercontent.com/tqchen/tvmlang.org/master/images/logo/tvm-logo-small.png width=128/>
Tensor IR Stack for Deep Learning Systems
==============================================
==============================================
[
![GitHub license
](
http://dmlc.github.io/img/apache2.svg
)
](./LICENSE)
[
![GitHub license
](
http://dmlc.github.io/img/apache2.svg
)
](./LICENSE)
...
...
python/tvm/contrib/nvcc.py
View file @
cc71d505
...
@@ -75,8 +75,11 @@ def compile_cuda(code,
...
@@ -75,8 +75,11 @@ def compile_cuda(code,
msg
+=
py_str
(
out
)
msg
+=
py_str
(
out
)
raise
RuntimeError
(
msg
)
raise
RuntimeError
(
msg
)
return
bytearray
(
open
(
file_target
,
"rb"
)
.
read
())
data
=
bytearray
(
open
(
file_target
,
"rb"
)
.
read
())
if
not
data
:
raise
RuntimeError
(
"Compilation error: empty result is generated"
)
return
data
def
find_cuda_path
():
def
find_cuda_path
():
"""Utility function to find cuda path
"""Utility function to find cuda 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