提交 ab2af7b4 编写于 作者: L Liangliang He

Fix OpenMP issue

上级 c3837858
......@@ -4,7 +4,7 @@ load("//mace:mace.bzl", "if_openmp_enabled", "if_android")
cc_binary(
name = "mace_run",
srcs = ["mace_run.cc"],
copts = if_openmp_enabled(["-fopenmp"]) + if_android([
copts = if_android([
"-DMACE_ENABLE_OPENCL",
]),
linkopts = if_openmp_enabled(["-fopenmp"]),
......
......@@ -386,7 +386,6 @@ int Main(int argc, char **argv) {
}
bool ret = false;
#pragma omp parallel for
for (int i = 0; i < FLAGS_restart_round; ++i) {
VLOG(0) << "restart round " << i;
ret =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册