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/platform.hpp>
35 #include <adapters/cuda/program.hpp>
36 #include <adapters/cuda/queue.hpp>
37 #include <adapters/cuda/sampler.hpp>
38 
39 // Share code between the PI Plugin and UR Adapter
40 #include <pi2ur.hpp>
41 
42 using _pi_stream_guard = std::unique_lock<std::mutex>;
43 
45  using ur_platform_handle_t_::ur_platform_handle_t_;
46 };
47 
49  using ur_device_handle_t_::ur_device_handle_t_;
50 };
51 
53  using ur_context_handle_t_::ur_context_handle_t_;
54 };
55 
57  using ur_mem_handle_t_::ur_mem_handle_t_;
58 };
59 
61  using ur_queue_handle_t_::ur_queue_handle_t_;
62 };
63 
65  using ur_event_handle_t_::ur_event_handle_t_;
66 };
67 
69  using ur_program_handle_t_::ur_program_handle_t_;
70 };
71 
73  using ur_kernel_handle_t_::ur_kernel_handle_t_;
74 };
75 
77  using ur_sampler_handle_t_::ur_sampler_handle_t_;
78 };
79 
81  using ur_exp_command_buffer_handle_t_::ur_exp_command_buffer_handle_t_;
82 };
83 
84 #endif // PI_CUDA_HPP
std::unique_lock< std::mutex > _pi_stream_guard
Definition: pi_cuda.hpp:42