Skip to content

Commit 6fdbe57

Browse files
committed
[ET-VK] Order stdlib includes after ET includes
Pull Request resolved: #4127 The convention in most files is: 1. Related header 2. Headers of the form ".h" (i.e. this project's other headers, further organize into blocks according to directory) 3. Headers of the form <> (i.e. standard libraries' headers) This change organizes files violating this convention by resolving #3. ghstack-source-id: 232399398 @exported-using-ghexport Differential Revision: [D59282477](https://our.internmc.facebook.com/intern/diff/D59282477/)
1 parent cfd6788 commit 6fdbe57

File tree

6 files changed

+19
-18
lines changed

6 files changed

+19
-18
lines changed

backends/vulkan/runtime/api/utils/VecUtils.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88

99
#pragma once
1010

11+
#include <executorch/backends/vulkan/runtime/api/vk_api/vk_api.h>
12+
13+
#include <executorch/backends/vulkan/runtime/api/vk_api/Exception.h>
14+
1115
#include <cmath>
1216
#include <limits>
1317
#include <numeric>
1418
#include <type_traits>
1519

16-
#include <executorch/backends/vulkan/runtime/api/vk_api/vk_api.h>
17-
18-
#include <executorch/backends/vulkan/runtime/api/vk_api/Exception.h>
19-
2020
namespace vkcompute {
2121
namespace utils {
2222

backends/vulkan/runtime/api/vk_api/QueryPool.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010

1111
// @lint-ignore-every CLANGTIDY facebook-hte-BadMemberName
1212

13-
#include <cstdint>
14-
#include <functional>
15-
1613
#include <executorch/backends/vulkan/runtime/api/vk_api/vk_api.h>
1714

1815
#include <executorch/backends/vulkan/runtime/api/vk_api/Adapter.h>
1916
#include <executorch/backends/vulkan/runtime/api/vk_api/Command.h>
2017
#include <executorch/backends/vulkan/runtime/api/vk_api/Pipeline.h>
2118

19+
#include <cstdint>
20+
#include <functional>
21+
2222
#ifndef VULKAN_QUERY_POOL_SIZE
2323
#define VULKAN_QUERY_POOL_SIZE 4096u
2424
#endif

backends/vulkan/runtime/api/vk_api/Runtime.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
#include <executorch/backends/vulkan/runtime/api/vk_api/Runtime.h>
10+
11+
#include <executorch/backends/vulkan/runtime/api/vk_api/Adapter.h>
12+
913
#include <cstring>
1014
#include <iostream>
1115
#include <sstream>
1216

13-
#include <executorch/backends/vulkan/runtime/api/vk_api/Adapter.h>
14-
#include <executorch/backends/vulkan/runtime/api/vk_api/Runtime.h>
15-
1617
namespace vkcompute {
1718
namespace vkapi {
1819

backends/vulkan/runtime/api/vk_api/Runtime.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
// @lint-ignore-every CLANGTIDY facebook-hte-BadMemberName
1212

13-
#include <functional>
14-
#include <memory>
15-
1613
#include <executorch/backends/vulkan/runtime/api/vk_api/vk_api.h>
1714

1815
#include <executorch/backends/vulkan/runtime/api/vk_api/Adapter.h>
1916

17+
#include <functional>
18+
#include <memory>
19+
2020
namespace vkcompute {
2121
namespace vkapi {
2222

backends/vulkan/runtime/api/vk_api/Shader.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
#include <utility>
10-
119
#include <executorch/backends/vulkan/runtime/api/vk_api/Shader.h>
1210

11+
#include <utility>
12+
1313
namespace vkcompute {
1414
namespace vkapi {
1515

backends/vulkan/runtime/api/vk_api/Types.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
// @lint-ignore-every CLANGTIDY bugprone-branch-clone
1212

13-
#include <cstddef>
14-
#include <cstdint>
15-
1613
#include <executorch/backends/vulkan/runtime/api/vk_api/vk_api.h>
1714

1815
#include <executorch/backends/vulkan/runtime/api/vk_api/Exception.h>
1916

17+
#include <cstddef>
18+
#include <cstdint>
19+
2020
#ifdef USE_VULKAN_FP16_INFERENCE
2121
#define VK_FORMAT_FLOAT4 VK_FORMAT_R16G16B16A16_SFLOAT
2222
#else

0 commit comments

Comments
 (0)