CUDNN Frontend API
8.3.0
|
#include <cudnn_backend_base.h>
Public Member Functions | |
OpaqueBackendPointer (const OpaqueBackendPointer &)=delete | |
Delete the copy constructor to prevent bad copies. More... | |
OpaqueBackendPointer & | operator= (const OpaqueBackendPointer &)=delete |
OpaqueBackendPointer (OpaqueBackendPointer &&)=default | |
OpaqueBackendPointer (cudnnBackendDescriptorType_t type) | |
~OpaqueBackendPointer () | |
cudnnBackendDescriptor_t const & | get_backend_descriptor () const |
cudnnStatus_t | get_status () const |
bool | is_good () const |
Private Attributes | |
cudnnBackendDescriptor_t | m_desc = nullptr |
Raw void pointer. More... | |
cudnnStatus_t | status = CUDNN_STATUS_SUCCESS |
status of creation of the Descriptor More... | |
OpaqueBackendPointer class Holds the raws pointer to backend_descriptor Usage is to wrap this into a smart pointer as it helps to create and destroy the backencpointer
Definition at line 36 of file cudnn_backend_base.h.
|
delete |
Delete the copy constructor to prevent bad copies.
|
default |
|
inline |
OpaqueBackendPointer constructor. Calls the cudnnBackendCreateDescriptor. Allocates memory according to the type.
Definition at line 50 of file cudnn_backend_base.h.
|
inline |
OpaqueBackendPointer destructor. Calls the cudnnBackendDestroyDescriptor. Frees memory allocated in the constructor.
Definition at line 55 of file cudnn_backend_base.h.
|
inline |
Accessor. Returns the const reference to raw underlying descriptor. Treat it like the data() function of a smart pointer. Can be freed behind the back.
Definition at line 62 of file cudnn_backend_base.h.
References m_desc.
|
inline |
Accessor. Queries the status of the descriptor after calling the cudnnCreate.
Definition at line 70 of file cudnn_backend_base.h.
References status.
|
inline |
Accessor. Queries the status of the descriptor returns true if all good.
Definition at line 78 of file cudnn_backend_base.h.
|
delete |
|
private |
Raw void pointer.
Definition at line 37 of file cudnn_backend_base.h.
Referenced by get_backend_descriptor().
|
private |
status of creation of the Descriptor
Definition at line 38 of file cudnn_backend_base.h.
Referenced by get_status(), cudnn_frontend::BackendDescriptor::get_status(), and cudnn_frontend::BackendDescriptor::set_status().