PI device mapping to a CUdevice. More...
#include <cuda/pi_cuda.hpp>
Public Member Functions | |
_pi_device (native_type cuDevice, CUcontext cuContext, CUevent evBase, pi_platform platform) | |
~_pi_device () | |
native_type | get () const noexcept |
CUcontext | get_context () const noexcept |
pi_uint32 | get_reference_count () const noexcept |
pi_platform | get_platform () const noexcept |
pi_uint64 | get_elapsed_time (CUevent) const |
void | save_max_work_item_sizes (size_t size, size_t *save_max_work_item_sizes) noexcept |
void | save_max_work_group_size (int value) noexcept |
void | get_max_work_item_sizes (size_t ret_size, size_t *ret_max_work_item_sizes) const noexcept |
int | get_max_work_group_size () const noexcept |
_pi_device (pi_platform ArgPlt, cm_support::CmDevice *ArgCmDev, std::string ArgVersionStr) | |
_pi_device (native_type cuDevice, pi_platform platform) | |
native_type | get () const noexcept |
pi_uint32 | get_reference_count () const noexcept |
pi_platform | get_platform () const noexcept |
void | set_context (pi_context ctx) |
pi_context | get_context () |
Public Attributes | |
pi_platform | Platform |
cm_support::CmDevice * | CmDevicePtr = nullptr |
std::string | VersionStr |
PI device mapping to a CUdevice.
PI device mapping to a hipDevice_t.
Includes an observer pointer to the platform, and implements the reference counting semantics since CUDA objects are not refcounted.
Includes an observer pointer to the platform, and implements the reference counting semantics since HIP objects are not refcounted.
Definition at line 83 of file pi_cuda.hpp.
|
inline |
Definition at line 98 of file pi_cuda.hpp.
|
inline |
Definition at line 103 of file pi_cuda.hpp.
|
inline |
Definition at line 82 of file pi_esimd_emulator.hpp.
|
inline |
Definition at line 87 of file pi_hip.hpp.
|
inlinenoexcept |
Definition at line 90 of file pi_hip.hpp.
|
inlinenoexcept |
Definition at line 105 of file pi_cuda.hpp.
Referenced by cuda_piEnqueueKernelLaunch(), cuda_piextDeviceCreateWithNativeHandle(), cuda_piextUSMEnqueueMemAdvise(), cuda_piProgramCreateWithBinary(), hip_piContextRelease(), hip_piEnqueueKernelLaunch(), hip_piextUSMEnqueuePrefetch(), and hip_piProgramCreateWithBinary().
|
inline |
Definition at line 98 of file pi_hip.hpp.
|
inlinenoexcept |
Definition at line 107 of file pi_cuda.hpp.
Referenced by _pi_context::_pi_context().
Definition at line 680 of file pi_cuda.cpp.
Referenced by _pi_event::get_end_time(), _pi_event::get_queued_time(), and _pi_event::get_start_time().
|
inlinenoexcept |
Definition at line 129 of file pi_cuda.hpp.
Referenced by cuda_piEnqueueKernelLaunch().
|
inlinenoexcept |
Definition at line 124 of file pi_cuda.hpp.
References sycl::_V1::detail::memcpy().
Referenced by cuda_piEnqueueKernelLaunch().
|
inlinenoexcept |
Definition at line 94 of file pi_hip.hpp.
|
inlinenoexcept |
Definition at line 111 of file pi_cuda.hpp.
|
inlinenoexcept |
Definition at line 92 of file pi_hip.hpp.
|
inlinenoexcept |
Definition at line 109 of file pi_cuda.hpp.
|
inlinenoexcept |
Definition at line 120 of file pi_cuda.hpp.
|
inlinenoexcept |
Definition at line 115 of file pi_cuda.hpp.
References sycl::_V1::detail::memcpy().
|
inline |
Definition at line 96 of file pi_hip.hpp.
cm_support::CmDevice* _pi_device::CmDevicePtr = nullptr |
Definition at line 89 of file pi_esimd_emulator.hpp.
Referenced by piContextRelease(), piextUSMFree(), piextUSMSharedAlloc(), piMemBufferCreate(), piMemImageCreate(), and piQueueCreate().
pi_platform _pi_device::Platform |
Definition at line 86 of file pi_esimd_emulator.hpp.
std::string _pi_device::VersionStr |
Definition at line 91 of file pi_esimd_emulator.hpp.