DPC++ Runtime
Runtime libraries for oneAPI DPC++
pi_cuda.hpp
Go to the documentation of this file.
1 //===-- pi_cuda.hpp - CUDA Plugin -----------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
11 
17 
18 #ifndef PI_CUDA_HPP
19 #define PI_CUDA_HPP
20 
21 // This version should be incremented for any change made to this file or its
22 // corresponding .cpp file.
23 #define _PI_CUDA_PLUGIN_VERSION 1
24 
25 #define _PI_CUDA_PLUGIN_VERSION_STRING \
26  _PI_PLUGIN_VERSION_STRING(_PI_CUDA_PLUGIN_VERSION)
27 
28 #include <adapters/cuda/command_buffer.hpp>
29 #include <adapters/cuda/context.hpp>
30 #include <adapters/cuda/device.hpp>
31 #include <adapters/cuda/event.hpp>
32 #include <adapters/cuda/kernel.hpp>
33 #include <adapters/cuda/memory.hpp>
34 #include <adapters/cuda/physical_mem.hpp>
35 #include <adapters/cuda/platform.hpp>
36 #include <adapters/cuda/program.hpp>
37 #include <adapters/cuda/queue.hpp>
38 #include <adapters/cuda/sampler.hpp>
39 
40 // Share code between the PI Plugin and UR Adapter
41 #include <pi2ur.hpp>
42 
43 using _pi_stream_guard = std::unique_lock<std::mutex>;
44 
46  using ur_platform_handle_t_::ur_platform_handle_t_;
47 };
48 
50  using ur_device_handle_t_::ur_device_handle_t_;
51 };
52 
54  using ur_context_handle_t_::ur_context_handle_t_;
55 };
56 
58  using ur_mem_handle_t_::ur_mem_handle_t_;
59 };
60 
62  using ur_queue_handle_t_::ur_queue_handle_t_;
63 };
64 
66  using ur_event_handle_t_::ur_event_handle_t_;
67 };
68 
70  using ur_program_handle_t_::ur_program_handle_t_;
71 };
72 
74  using ur_kernel_handle_t_::ur_kernel_handle_t_;
75 };
76 
78  using ur_sampler_handle_t_::ur_sampler_handle_t_;
79 };
80 
82  using ur_exp_command_buffer_handle_t_::ur_exp_command_buffer_handle_t_;
83 };
84 
86  using ur_physical_mem_handle_t_::ur_physical_mem_handle_t_;
87 };
88 
89 #endif // PI_CUDA_HPP
std::unique_lock< std::mutex > _pi_stream_guard
Definition: pi_cuda.hpp:43