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
4bf1fd8c
Commit
4bf1fd8c
authored
Nov 29, 2018
by
Pratyush Patel
Committed by
Tianqi Chen
Nov 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix llvm dependency bug (#2198)
parent
71341451
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
python/tvm/contrib/cc.py
+0
-2
python/tvm/module.py
+3
-0
No files found.
python/tvm/contrib/cc.py
View file @
4bf1fd8c
...
...
@@ -7,7 +7,6 @@ import os
from
.._ffi.base
import
py_str
from
.util
import
tempdir
from
.._ffi.libinfo
import
find_include_path
def
create_shared
(
output
,
...
...
@@ -50,7 +49,6 @@ def _linux_shared(output, objects, options, cc="g++"):
cmd
+=
objects
if
options
:
cmd
+=
options
cmd
+=
[
"-I"
+
path
for
path
in
find_include_path
()]
proc
=
subprocess
.
Popen
(
cmd
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
)
(
out
,
_
)
=
proc
.
communicate
()
...
...
python/tvm/module.py
View file @
4bf1fd8c
...
...
@@ -6,6 +6,7 @@ from collections import namedtuple
from
._ffi.function
import
ModuleBase
,
_set_class_module
from
._ffi.function
import
_init_api
from
._ffi.libinfo
import
find_include_path
from
.contrib
import
cc
as
_cc
,
tar
as
_tar
,
util
as
_util
ProfileResult
=
namedtuple
(
"ProfileResult"
,
[
"mean"
,
"results"
])
...
...
@@ -122,6 +123,8 @@ class Module(ModuleBase):
fcompile
=
_tar
.
tar
else
:
fcompile
=
_cc
.
create_shared
if
self
.
type_key
==
"c"
:
kwargs
.
update
({
'options'
:
[
"-I"
+
path
for
path
in
find_include_path
()]})
fcompile
(
file_name
,
files
,
**
kwargs
)
def
time_evaluator
(
self
,
func_name
,
ctx
,
number
,
repeat
=
1
):
...
...
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