Skip to content

Commit 976063c

Browse files
committed
format code with clang-format3.8
1 parent 880aa22 commit 976063c

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

paddle/cuda/src/hl_cuda_device.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
1313
limitations under the License. */
1414

15-
#include "hl_cuda.h"
1615
#include <cuda_profiler_api.h>
1716
#include <string.h>
1817
#include <sys/syscall.h>
1918
#include <sys/time.h>
2019
#include <unistd.h>
2120
#include <mutex>
21+
#include "hl_cuda.h"
2222
#include "hl_cuda.ph"
2323
#include "hl_dso_loader.h"
2424
#include "hl_thread.ph"

paddle/utils/tests/test_SIMDFlags.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ using namespace paddle; // NOLINT
1919

2020
TEST(SIMDFlags, gccTest) {
2121
#if (defined(__GNUC__) || defined(__GNUG__)) && !(defined(__clang__))
22-
// clang-format off
22+
// clang-format off
2323
CHECK(!__builtin_cpu_supports("sse") != HAS_SSE);
2424
CHECK(!__builtin_cpu_supports("sse2") != HAS_SSE2);
2525
CHECK(!__builtin_cpu_supports("sse3") != HAS_SSE3);
@@ -33,16 +33,16 @@ TEST(SIMDFlags, gccTest) {
3333
}
3434

3535
TEST(SIMDFlags, normalPrint) {
36-
LOG(INFO) << "Has SSE: " << std::boolalpha << HAS_SSE;
37-
LOG(INFO) << "Has SSE2: " << std::boolalpha << HAS_SSE2;
38-
LOG(INFO) << "Has SSE3: " << std::boolalpha << HAS_SSE3;
39-
LOG(INFO) << "Has SSSE3: " << std::boolalpha << HAS_SSSE3;
40-
LOG(INFO) << "Has SSE4: " << std::boolalpha << HAS_SSE41 || HAS_SSE42;
41-
LOG(INFO) << "Has FMA3: " << std::boolalpha << HAS_FMA3;
42-
LOG(INFO) << "Has FMA4: " << std::boolalpha << HAS_FMA4;
43-
LOG(INFO) << "Has AVX: " << std::boolalpha << HAS_AVX;
44-
LOG(INFO) << "Has AVX2: " << std::boolalpha << HAS_AVX2;
45-
LOG(INFO) << "Has AVX512: " << std::boolalpha << HAS_AVX512;
36+
LOG(INFO) << "Has SSE: " << std::boolalpha << HAS_SSE;
37+
LOG(INFO) << "Has SSE2: " << std::boolalpha << HAS_SSE2;
38+
LOG(INFO) << "Has SSE3: " << std::boolalpha << HAS_SSE3;
39+
LOG(INFO) << "Has SSSE3: " << std::boolalpha << HAS_SSSE3;
40+
LOG(INFO) << "Has SSE4: " << std::boolalpha << HAS_SSE41 || HAS_SSE42;
41+
LOG(INFO) << "Has FMA3: " << std::boolalpha << HAS_FMA3;
42+
LOG(INFO) << "Has FMA4: " << std::boolalpha << HAS_FMA4;
43+
LOG(INFO) << "Has AVX: " << std::boolalpha << HAS_AVX;
44+
LOG(INFO) << "Has AVX2: " << std::boolalpha << HAS_AVX2;
45+
LOG(INFO) << "Has AVX512: " << std::boolalpha << HAS_AVX512;
4646
}
4747

4848
int main(int argc, char** argv) {

0 commit comments

Comments
 (0)