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
55ba9cb8
Commit
55ba9cb8
authored
Jul 08, 2017
by
Tianqi Chen
Committed by
GitHub
Jul 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TEST] Add scipy to test dep (#231)
parent
9d84cb07
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/codegen/llvm/codegen_llvm.cc
+2
-2
src/codegen/llvm/codegen_llvm.h
+2
-2
tests/ci_build/install/ubuntu_install_python.sh
+2
-2
No files found.
src/codegen/llvm/codegen_llvm.cc
View file @
55ba9cb8
...
...
@@ -780,7 +780,7 @@ llvm::Value* CodeGenLLVM::CreateIntrinstic(const Call* op) {
MakeValue
(
op
->
args
[
0
]),
MakeValue
(
op
->
args
[
1
]));
}
}
else
if
(
op
->
is_intrinsic
(
intrinsic
::
tvm_throw_last_error
))
{
builder_
->
CreateRet
(
llvm
::
ConstantInt
::
getSigned
(
t_int32_
,
-
1
));
builder_
->
CreateRet
(
ConstInt32
(
-
1
));
return
ConstInt32
(
-
1
);
}
else
if
(
op
->
is_intrinsic
(
intrinsic
::
tvm_address_of
))
{
const
Load
*
l
=
op
->
args
[
0
].
as
<
Load
>
();
...
...
@@ -1440,7 +1440,7 @@ void CodeGenLLVM::VisitStmt_(const AssertStmt* op) {
// fail condition.
builder_
->
SetInsertPoint
(
fail_block
);
builder_
->
CreateCall
(
f_tvm_api_set_last_error_
,
{
msg
});
builder_
->
CreateRet
(
llvm
::
ConstantInt
::
getSigned
(
t_int32_
,
-
1
));
builder_
->
CreateRet
(
ConstInt32
(
-
1
));
// otherwise set it to be new end.
builder_
->
SetInsertPoint
(
end_block
);
// Detect useful invariant pattern and use them to visit child.
...
...
src/codegen/llvm/codegen_llvm.h
View file @
55ba9cb8
...
...
@@ -70,8 +70,8 @@ class CodeGenLLVM :
return
VisitExpr
(
e
);
}
// Short hande code to get a constant int 32
llvm
::
Constant
*
ConstInt32
(
unsigned
value
)
const
{
return
llvm
::
ConstantInt
::
get
(
t_int32_
,
value
);
llvm
::
Constant
*
ConstInt32
(
int64_t
value
)
const
{
return
llvm
::
ConstantInt
::
get
Signed
(
t_int32_
,
value
);
}
// override codegen
llvm
::
Value
*
VisitExpr_
(
const
Variable
*
op
)
override
;
...
...
tests/ci_build/install/ubuntu_install_python.sh
View file @
55ba9cb8
...
...
@@ -4,5 +4,5 @@ apt-get update && apt-get install -y python-pip python-dev python3-dev
# the version of the pip shipped with ubuntu may be too lower, install a recent version here
cd
/tmp
&&
wget https://bootstrap.pypa.io/get-pip.py
&&
python3 get-pip.py
&&
python2 get-pip.py
pip2 install nose pylint numpy nose-timer cython decorator
pip3 install nose pylint numpy nose-timer cython decorator
pip2 install nose pylint numpy nose-timer cython decorator
scipy
pip3 install nose pylint numpy nose-timer cython decorator
scipy
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