add python o3

This commit is contained in:
tqchen 2014-05-08 20:15:23 -07:00
parent c9d156d99e
commit 5e0d52cb8c
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
export CC = gcc
export CXX = g++
export CFLAGS = -Wall -msse2 -Wno-unknown-pragmas -fopenmp
export CFLAGS = -Wall -O3 -msse2 -Wno-unknown-pragmas -fopenmp
# specify tensor path
SLIB = libxgboostpy.so

View File

@ -75,6 +75,7 @@ namespace xgboost{
inline void CheckInit(void){
if(!init_col_){
this->data.InitData();
init_col_ = true;
}
utils::Assert( this->data.NumRow() == this->info.labels.size(), "DMatrix: number of labels must match number of rows in matrix");
}