From ad0e4554a12a673945924954bf21ac73f8e89552 Mon Sep 17 00:00:00 2001 From: xiefangqi Date: Mon, 20 Jul 2020 10:52:34 +0800 Subject: [PATCH] comment cache server on windows --- mindspore/ccsrc/minddata/dataset/util/services.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mindspore/ccsrc/minddata/dataset/util/services.cc b/mindspore/ccsrc/minddata/dataset/util/services.cc index 547773e0f1..44eba24ca6 100644 --- a/mindspore/ccsrc/minddata/dataset/util/services.cc +++ b/mindspore/ccsrc/minddata/dataset/util/services.cc @@ -77,9 +77,13 @@ Status Services::CreateAllInstances() { rc = sa_[kSlotTaskMgr_]->ServiceStart(); RETURN_IF_NOT_OK(rc); // TODO(jesse) : Get the parameters from config file. Right now spill to /tmp and spawn 3 workers +#if !defined(_WIN32) && !defined(_WIN64) sa_[kSlotCacheMgr_] = new (&rc, pool_) CacheServer("/tmp", 3); RETURN_IF_NOT_OK(rc); rc = sa_[kSlotCacheMgr_]->ServiceStart(); +#else + sa_[kSlotCacheMgr_] = nullptr; +#endif return rc; }