DPC++ Runtime
Runtime libraries for oneAPI DPC++
_pi_context Struct Reference

#include <cuda/pi_cuda.hpp>

Inheritance diagram for _pi_context:
Collaboration diagram for _pi_context:

Public Member Functions

 ur_context_handle_t_ (ur_device_handle_t_ *DevID)
 
 ur_context_handle_t_ (ur_device_handle_t DevId)
 
 ur_context_handle_t_ (ur_device_handle_t_ *phDevices)
 
 ur_context_handle_t_ (ur_device_handle_t_ *DevID)
 
 ur_context_handle_t_ (ur_device_handle_t DevId)
 
 ur_context_handle_t_ (ur_device_handle_t_ *phDevices)
 
 ur_context_handle_t_ (ur_device_handle_t_ *DevID)
 
 ur_context_handle_t_ (ur_device_handle_t DevId)
 
 ur_context_handle_t_ (ur_device_handle_t_ *phDevices)
 
- Public Member Functions inherited from ur_context_handle_t_
 ur_context_handle_t_ (ur_device_handle_t_ *DevID)
 
 ~ur_context_handle_t_ ()
 
void invokeExtendedDeleters ()
 
void setExtendedDeleter (ur_context_extended_deleter_t Function, void *UserData)
 
ur_device_handle_t getDevice () const noexcept
 
native_type get () const noexcept
 
uint32_t incrementReferenceCount () noexcept
 
uint32_t decrementReferenceCount () noexcept
 
uint32_t getReferenceCount () const noexcept
 
void addPool (ur_usm_pool_handle_t Pool)
 
void removePool (ur_usm_pool_handle_t Pool)
 
ur_usm_pool_handle_t getOwningURPool (umf_memory_pool_t *UMFPool)
 
 ur_context_handle_t_ (ur_device_handle_t DevId)
 
 ~ur_context_handle_t_ ()
 
void invokeExtendedDeleters ()
 
void setExtendedDeleter (ur_context_extended_deleter_t Function, void *UserData)
 
ur_device_handle_t getDevice () const noexcept
 
uint32_t incrementReferenceCount () noexcept
 
uint32_t decrementReferenceCount () noexcept
 
uint32_t getReferenceCount () const noexcept
 
void addPool (ur_usm_pool_handle_t Pool)
 
void removePool (ur_usm_pool_handle_t Pool)
 
ur_usm_pool_handle_t getOwningURPool (umf_memory_pool_t *UMFPool)
 
void addUSMMapping (void *Ptr, size_t Size)
 We need to keep track of USM mappings in AMD HIP, as certain extra synchronization is actually required for correctness. More...
 
void removeUSMMapping (const void *Ptr)
 
std::pair< const void *, size_t > getUSMMapping (const void *Ptr)
 
 ur_context_handle_t_ (ur_device_handle_t_ *phDevices)
 

Additional Inherited Members

- Public Types inherited from ur_context_handle_t_
using native_type = CUcontext
 
using native_type = hipCtx_t
 
- Public Attributes inherited from ur_context_handle_t_
native_type CUContext
 
ur_device_handle_t DeviceID
 
std::atomic_uint32_t RefCount
 
ur_device_handle_t DeviceId
 
ur_device_handle_t _device
 

Detailed Description

Definition at line 52 of file pi_cuda.hpp.

Member Function Documentation

◆ ur_context_handle_t_() [1/9]

ur_context_handle_t_::ur_context_handle_t_
inline

Definition at line 73 of file context.hpp.

◆ ur_context_handle_t_() [2/9]

ur_context_handle_t_::ur_context_handle_t_
inline

Definition at line 73 of file context.hpp.

◆ ur_context_handle_t_() [3/9]

ur_context_handle_t_::ur_context_handle_t_
inline

Definition at line 73 of file context.hpp.

◆ ur_context_handle_t_() [4/9]

ur_context_handle_t_::ur_context_handle_t_
inline

Definition at line 79 of file context.hpp.

◆ ur_context_handle_t_() [5/9]

ur_context_handle_t_::ur_context_handle_t_
inline

Definition at line 79 of file context.hpp.

◆ ur_context_handle_t_() [6/9]

ur_context_handle_t_::ur_context_handle_t_
inline

Definition at line 79 of file context.hpp.

◆ ur_context_handle_t_() [7/9]

ur_context_handle_t_::ur_context_handle_t_
inline

Definition at line 16 of file context.hpp.

◆ ur_context_handle_t_() [8/9]

ur_context_handle_t_::ur_context_handle_t_
inline

Definition at line 16 of file context.hpp.

◆ ur_context_handle_t_() [9/9]

ur_context_handle_t_::ur_context_handle_t_
inline

Definition at line 16 of file context.hpp.


The documentation for this struct was generated from the following file: