File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
unified-runtime/source/adapters/cuda Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 88//
99// ===----------------------------------------------------------------------===//
1010
11+ #ifndef UR_CUDA_ADAPTER_HPP_INCLUDED
12+ #define UR_CUDA_ADAPTER_HPP_INCLUDED
13+
1114#include " logger/ur_logger.hpp"
1215#include " platform.hpp"
1316#include " tracing.hpp"
1720#include < memory>
1821#include < mutex>
1922
20- // should maybe be an ifdef
21- #pragma once
22-
2323struct ur_platform_handle_t_ ;
2424
2525struct ur_adapter_handle_t_ {
@@ -35,3 +35,5 @@ struct ur_adapter_handle_t_ {
3535namespace ur ::cuda {
3636extern std::shared_ptr<ur_adapter_handle_t_> adapter;
3737} // namespace ur::cuda
38+
39+ #endif // UR_CUDA_ADAPTER_HPP_INCLUDED
Original file line number Diff line number Diff line change 77// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
88//
99// ===----------------------------------------------------------------------===//
10- #pragma once
10+
11+ #ifndef UR_CUDA_PLATFORM_HPP_INCLUDED
12+ #define UR_CUDA_PLATFORM_HPP_INCLUDED
1113
1214#include " device.hpp"
1315#include < ur/ur.hpp>
1820struct ur_platform_handle_t_ {
1921 std::vector<std::unique_ptr<ur_device_handle_t_>> Devices;
2022};
23+
24+ #endif // UR_CUDA_PLATFORM_HPP_INCLUDED
You can’t perform that action at this time.
0 commit comments