Android-cuttlefish cvd tool
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
cuttlefish::CudaContext Class Reference

#include <cuda_context.h>

Collaboration diagram for cuttlefish::CudaContext:
Collaboration graph
[legend]

Public Member Functions

 ~CudaContext ()
 
CUcontext get () const
 

Static Public Member Functions

static std::shared_ptr< CudaContextGet (int device_id=0)
 
static Result< ScopedCudaContextAcquire (int device_id=0)
 

Private Member Functions

 CudaContext (CUcontext ctx, int device_id, const CudaFunctions *cuda)
 

Private Attributes

CUcontext ctx_
 
int device_id_
 
const CudaFunctionscuda_
 

Constructor & Destructor Documentation

◆ ~CudaContext()

cuttlefish::CudaContext::~CudaContext ( )

◆ CudaContext()

cuttlefish::CudaContext::CudaContext ( CUcontext  ctx,
int  device_id,
const CudaFunctions cuda 
)
private

Member Function Documentation

◆ Acquire()

Result< ScopedCudaContext > cuttlefish::CudaContext::Acquire ( int  device_id = 0)
static

◆ get()

CUcontext cuttlefish::CudaContext::get ( ) const
inline

◆ Get()

std::shared_ptr< CudaContext > cuttlefish::CudaContext::Get ( int  device_id = 0)
static

Member Data Documentation

◆ ctx_

CUcontext cuttlefish::CudaContext::ctx_
private

◆ cuda_

const CudaFunctions* cuttlefish::CudaContext::cuda_
private

◆ device_id_

int cuttlefish::CudaContext::device_id_
private

The documentation for this class was generated from the following files: