Skip to content

Commit

Permalink
android fix
Browse files Browse the repository at this point in the history
  • Loading branch information
allnes committed Oct 16, 2023
1 parent 34a6dce commit f2af1b9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/plugins/intel_cpu/src/nodes/executors/acl/acl_ie_scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,5 @@ class ACLScheduler final : public IScheduler {
void schedule_custom(ICPPKernel *kernel, const Hints &hints, const Window &window, ITensorPack &tensors);
};

static std::mutex & get_mtx_acl() {
static std::mutex mtx_acl;
return mtx_acl;
}

static std::shared_ptr<ov::intel_cpu::ACLScheduler> & get_acl_scheduler() {
static std::shared_ptr<ACLScheduler> acl_scheduler = std::make_shared<ACLScheduler>();
return acl_scheduler;
}

} // namespace intel_cpu
} // namespace ov
11 changes: 11 additions & 0 deletions src/plugins/intel_cpu/src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@

#if defined(OV_CPU_WITH_ACL)
#include "nodes/executors/acl/acl_ie_scheduler.hpp"

static std::mutex & get_mtx_acl() {
static std::mutex mtx_acl;
return mtx_acl;
}

static std::shared_ptr<ov::intel_cpu::ACLScheduler> & get_acl_scheduler() {
static std::shared_ptr<ov::intel_cpu::ACLScheduler> acl_scheduler =
std::make_shared<ov::intel_cpu::ACLScheduler>();
return acl_scheduler;
}
#endif

using namespace InferenceEngine;
Expand Down

0 comments on commit f2af1b9

Please sign in to comment.