Skip to content

Commit

Permalink
Change the all #pragma once to ifdef include guard (#7264)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkimball authored Jan 13, 2021
1 parent 006b9b5 commit 1410e68
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/runtime/contrib/cblas/gemm_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
* \file tvm/contrib/gemm.h
* \brief Shared implementation of gemm
*/
#pragma once

#ifndef TVM_RUNTIME_CONTRIB_CBLAS_GEMM_COMMON_H_
#define TVM_RUNTIME_CONTRIB_CBLAS_GEMM_COMMON_H_

#include <tvm/runtime/data_type.h>
#include <tvm/runtime/registry.h>
Expand Down Expand Up @@ -215,3 +217,4 @@ inline void CallBatchGemm(TVMArgs args, TVMRetValue* ret, TBatchGemmOp op) {

} // namespace contrib
} // namespace tvm
#endif // TVM_RUNTIME_CONTRIB_CBLAS_GEMM_COMMON_H_
5 changes: 4 additions & 1 deletion src/runtime/vulkan/vulkan_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
#pragma once

#ifndef TVM_RUNTIME_VULKAN_VULKAN_COMMON_H_
#define TVM_RUNTIME_VULKAN_VULKAN_COMMON_H_

#include <tvm/runtime/c_runtime_api.h>
#include <tvm/runtime/device_api.h>
Expand Down Expand Up @@ -143,3 +145,4 @@ struct VulkanContext {
} // namespace vulkan
} // namespace runtime
} // namespace tvm
#endif // TVM_RUNTIME_VULKAN_VULKAN_COMMON_H_
5 changes: 4 additions & 1 deletion src/runtime/vulkan/vulkan_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
#pragma once

#ifndef TVM_RUNTIME_VULKAN_VULKAN_MODULE_H_
#define TVM_RUNTIME_VULKAN_VULKAN_MODULE_H_

#include <string>
#include <unordered_map>
Expand All @@ -35,3 +37,4 @@ Module VulkanModuleCreate(std::unordered_map<std::string, VulkanShader> smap,
using vulkan::VulkanModuleCreate;
} // namespace runtime
} // namespace tvm
#endif // TVM_RUNTIME_VULKAN_VULKAN_MODULE_H_
5 changes: 4 additions & 1 deletion src/runtime/vulkan/vulkan_shader.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
#pragma once

#ifndef TVM_RUNTIME_VULKAN_VULKAN_SHADER_H_
#define TVM_RUNTIME_VULKAN_VULKAN_SHADER_H_

#include <tvm/runtime/c_runtime_api.h>
#include <tvm/runtime/device_api.h>
Expand Down Expand Up @@ -55,3 +57,4 @@ using vulkan::VulkanShader;
namespace dmlc {
DMLC_DECLARE_TRAITS(has_saveload, ::tvm::runtime::vulkan::VulkanShader, true);
} // namespace dmlc
#endif // TVM_RUNTIME_VULKAN_VULKAN_SHADER_H_
5 changes: 4 additions & 1 deletion src/runtime/vulkan/vulkan_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
#pragma once

#ifndef TVM_RUNTIME_VULKAN_VULKAN_STREAM_H_
#define TVM_RUNTIME_VULKAN_VULKAN_STREAM_H_

#include <functional>
#include <memory>
Expand Down Expand Up @@ -184,3 +186,4 @@ class VulkanStream {
} // namespace vulkan
} // namespace runtime
} // namespace tvm
#endif // TVM_RUNTIME_VULKAN_VULKAN_STREAM_H_

0 comments on commit 1410e68

Please sign in to comment.