implementing distributed linear algebra

This commit is contained in:
Robert Nishihara
2016-03-23 18:38:42 -07:00
parent b9d472342b
commit 29a923fc31
11 changed files with 371 additions and 57 deletions
+6
View File
@@ -7,6 +7,12 @@
Status SchedulerService::RemoteCall(ServerContext* context, const RemoteCallRequest* request, RemoteCallReply* reply) {
std::unique_ptr<Call> task(new Call(request->call())); // need to copy, because request is const
fntable_lock_.lock();
if (fntable_.find(task->name()) == fntable_.end()) {
// TODO(rkn): In the future, this should probably not be fatal.
ORCH_LOG(ORCH_FATAL, "The function " << task->name() << " has not been registered by any worker.");
}
size_t num_return_vals = fntable_[task->name()].num_return_vals();
fntable_lock_.unlock();