summaryrefslogtreecommitdiff
path: root/nn/runtime/test/TestOpenmpSettings.cpp
diff options
context:
space:
mode:
authorMichael Butler <butlermichael@google.com>2019-07-22 18:59:46 -0700
committerMichael Butler <butlermichael@google.com>2019-07-31 12:18:06 -0700
commit67e41a5467d7879b34f613069ade6cf61d5bd633 (patch)
tree444191a43f66be764738603041e505fdabb91da5 /nn/runtime/test/TestOpenmpSettings.cpp
parentba75b06d41ab3dd0724bb89d64d9a20052a8fab4 (diff)
downloadml-67e41a5467d7879b34f613069ade6cf61d5bd633.tar.gz
clang-format for frameworks/ml/nn
This CL formats all of frameworks/ml/nn/* with the following commands: $ $CLANG_DIR/clang-format --style=file -i `find $NNAPI_DIR -name "*.cpp"` $ $CLANG_DIR/clang-format --style=file -i `find $NNAPI_DIR -name "*.h"` where: * "NNAPI_DIR" is "$ANDROID_BUILD_TOP/frameworks/ml/nn" * "CLANG_DIR" is "$ANDROID_BUILD_TOP/prebuilts/clang/host/linux-x86/clang-stable/bin" Bug: N/A Test: mma Change-Id: Idddbc7ecaeab76fb0bbee4250830333752a1f29b
Diffstat (limited to 'nn/runtime/test/TestOpenmpSettings.cpp')
-rw-r--r--nn/runtime/test/TestOpenmpSettings.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/nn/runtime/test/TestOpenmpSettings.cpp b/nn/runtime/test/TestOpenmpSettings.cpp
index 3c42bcd99..af50c63ed 100644
--- a/nn/runtime/test/TestOpenmpSettings.cpp
+++ b/nn/runtime/test/TestOpenmpSettings.cpp
@@ -16,19 +16,19 @@
#include "CpuExecutor.h"
-#include <algorithm>
#include <gtest/gtest.h>
-#include <memory>
#include <omp.h>
+#include <unistd.h>
+#include <algorithm>
+#include <memory>
#include <random>
#include <thread>
-#include <unistd.h>
#include <vector>
namespace {
class OpenmpSettingsTest : public ::testing::Test {
-protected:
+ protected:
virtual void SetUp() override {
const int blocktimeInitial = kmp_get_blocktime();
ASSERT_EQ(blocktimeInitial, kOpenmpDefaultBlockTime);
@@ -86,9 +86,7 @@ TEST_F(OpenmpSettingsTest, TestThreaded) {
ASSERT_EQ(blocktimeSet2, kPreferredBlockTime);
}));
}
- std::for_each(threads.begin(), threads.end(), [](std::thread& t) {
- t.join();
- });
+ std::for_each(threads.begin(), threads.end(), [](std::thread& t) { t.join(); });
}
} // end namespace