File QnnGpuContext.h

Parent directory (include/QNN/GPU)

A header which defines the QNN GPU specialization of the File QnnContext.h interface.

Definition (include/QNN/GPU/QnnGpuContext.h)

Full File Listing

A header which defines the QNN GPU specialization of the QnnContext.h interface.

Defines

QNN_GPU_CONTEXT_CUSTOM_CONFIG_INIT   {                                                               \     QNN_GPU_CONTEXT_CONFIG_OPTION_UNDEFINED

, /*option*/           \

{                                                             \

QNN_GPU_CONTEXT_PERF_HINT_HIGH

/*perfHint*/         \

}                                                             \

}


QnnGpuContext_CustomConfig_t initializer macro.

Enums

enum QnnGpuContext_ConfigOption_t

This enum defines QNN GPU custom context config options.

Values:

enumerator QNN_GPU_CONTEXT_CONFIG_OPTION_PERF_HINT = 0

Sets performance hint options via QnnGpuContext_PerfHint_t.

enumerator QNN_GPU_CONTEXT_CONFIG_OPTION_USE_GL_BUFFERS = 1

If non-zero, OpenGL buffers will be used.

enumerator QNN_GPU_CONTEXT_CONFIG_OPTION_KERNEL_REPO_DIR = 2

The kernel disk cache directory. Must be non-null.

enumerator QNN_GPU_CONTEXT_CONFIG_OPTION_INVALIDATE_KERNEL_REPO = 3

If non-zero, the kernel disk cache will be ignored when initializing.

enumerator QNN_GPU_CONTEXT_CONFIG_OPTION_UNDEFINED = 0x7FFFFFFF

Unused, present to ensure 32 bits.

enum QnnGpuContext_PerfHint_t

An enum which defines the different GPU performance hint options.

Values:

enumerator QNN_GPU_CONTEXT_PERF_HINT_HIGH = 0

Sets the GPU performance hint to high performance, this is the default.

enumerator QNN_GPU_CONTEXT_PERF_HINT_NORMAL = 1

Sets the GPU performance hint to normal performance.

enumerator QNN_GPU_CONTEXT_PERF_HINT_LOW = 2

Sets the GPU performance hint to low performance.

struct QnnGpuContext_CustomConfig_t
#include <QnnGpuContext.h>

A struct which defines the QNN GPU context custom configuration options. Objects of this type are to be referenced through QnnContext_CustomConfig_t.

Public Members

QnnGpuContext_ConfigOption_t option
union unnamed
#include <QnnGpuContext.h>

Public Members

QnnGpuContext_PerfHint_t perfHint
uint8_t useGLBuffers
const char *kernelRepoDir
uint8_t invalidateKernelRepo