diff --git a/make/mshadow.mk b/make/mshadow.mk index 6e7b68b7b989..5a0a65109573 100644 --- a/make/mshadow.mk +++ b/make/mshadow.mk @@ -24,8 +24,14 @@ endif ifeq ($(USE_BLAS), mkl) ifneq ($(USE_INTEL_PATH), NONE) - MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/mkl/lib/intel64 - MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/lib/intel64 + UNAME_S := $(shell uname -s) + ifeq ($(UNAME_S),Darwin) + MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/mkl/lib + MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/lib + else + MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/mkl/lib/intel64 + MSHADOW_LDFLAGS += -L$(USE_INTEL_PATH)/lib/intel64 + endif MSHADOW_CFLAGS += -I$(USE_INTEL_PATH)/mkl/include endif MSHADOW_LDFLAGS += -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 diff --git a/mshadow-ps/ps_dist-inl.h b/mshadow-ps/ps_dist-inl.h index ed955e9da6a1..ffde1799c5e8 100644 --- a/mshadow-ps/ps_dist-inl.h +++ b/mshadow-ps/ps_dist-inl.h @@ -95,7 +95,7 @@ class MShadowServerNode : public PS::App { MShadowServerNode(const std::string &conf) : App() { updater_ = CreateModelUpdater(); - updater_->InitServer(myRank(), conf); + updater_->InitUpdater(myRank(), conf); shared_model_ = new PS::KVArray(); shared_model_->setUpdater(updater_); } diff --git a/mshadow/tensor_container.h b/mshadow/tensor_container.h index dbf250ceed28..19ebc2658040 100644 --- a/mshadow/tensor_container.h +++ b/mshadow/tensor_container.h @@ -49,7 +49,7 @@ class TensorContainer: public Tensor { */ explicit TensorContainer(const Shape &shape, DType initv) { this->pad_ = MSHADOW_ALLOC_PAD; - data_.dptr = NULL; + data_.dptr_ = NULL; this->AllocByShape(shape); (*this) = initv; }