Commit 55ba9cb8 by Tianqi Chen Committed by GitHub

[TEST] Add scipy to test dep (#231)

parent 9d84cb07
......@@ -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.
......
......@@ -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::getSigned(t_int32_, value);
}
// override codegen
llvm::Value* VisitExpr_(const Variable* op) override;
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment