Compute Library
 23.11
acl Namespace Reference

Namespaces

 detail
 

Data Structures

class  Activation
 
class  Context
 Context class. More...
 
class  Operator
 Operator class. More...
 
class  Queue
 Queue class. More...
 
class  Tensor
 Tensor class. More...
 
class  TensorDescriptor
 Tensor Descriptor class. More...
 
class  TensorPack
 Tensor pack class. More...
 

Typedefs

using ActivationDesc = AclActivationDescriptor
 Operators. More...
 

Enumerations

enum  StatusCode {
  Success = AclSuccess, RuntimeError = AclRuntimeError, OutOfMemory = AclOutOfMemory, Unimplemented = AclUnimplemented,
  UnsupportedTarget = AclUnsupportedTarget, InvalidArgument = AclInvalidArgument, InvalidTarget = AclInvalidTarget, UnsupportedConfig = AclUnsupportedConfig,
  InvalidObjectState = AclInvalidObjectState
}
 Status code enum. More...
 
enum  Target { Cpu = AclCpu, GpuOcl = AclGpuOcl }
 < Target enum More...
 
enum  ExecutionMode { FastRerun, FastStart = AclPreferFastStart }
 
enum  TuningMode { Rapid = AclRapid, Normal = AclNormal, Exhaustive = AclExhaustive }
 
enum  DataType {
  Unknown = AclDataTypeUnknown, UInt8 = AclUInt8, Int8 = AclInt8, UInt16 = AclUInt16,
  Int16 = AclInt16, UInt32 = AclUint32, Int32 = AclInt32, Float16 = AclFloat16,
  BFloat16 = AclBFloat16, Float32 = AclFloat32
}
 
enum  ImportType { Host = AclImportMemoryType::AclHostPtr }
 Import memory types. More...
 

Typedef Documentation

◆ ActivationDesc

Operators.

Definition at line 774 of file Acl.hpp.

Enumeration Type Documentation

◆ DataType

enum DataType
strong
Enumerator
Unknown 
UInt8 
Int8 
UInt16 
Int16 
UInt32 
Int32 
Float16 
BFloat16 
Float32 

Definition at line 482 of file Acl.hpp.

483 {
485  UInt8 = AclUInt8,
486  Int8 = AclInt8,
487  UInt16 = AclUInt16,
488  Int16 = AclInt16,
489  UInt32 = AclUint32,
490  Int32 = AclInt32,
494 };

◆ ExecutionMode

enum ExecutionMode
strong
Enumerator
FastRerun 

Prefer minimum latency in consecutive runs, might introduce higher startup times.

FastStart 

Prefer minimizing startup time.

Definition at line 299 of file Acl.hpp.

300 {
301  FastRerun =
302  AclPreferFastRerun, /**< Prefer minimum latency in consecutive runs, might introduce higher startup times */
303  FastStart = AclPreferFastStart, /**< Prefer minimizing startup time */
304 };

◆ ImportType

enum ImportType
strong

Import memory types.

Enumerator
Host 

Definition at line 569 of file Acl.hpp.

570 {
572 };

◆ StatusCode

enum StatusCode
strong

Status code enum.

Enumerator
Success 
RuntimeError 
OutOfMemory 
Unimplemented 
UnsupportedTarget 
InvalidArgument 
InvalidTarget 
UnsupportedConfig 
InvalidObjectState 

Definition at line 50 of file Acl.hpp.

◆ Target

enum Target
strong

< Target enum

Enumerator
Cpu 

Cpu target that leverages SIMD.

GpuOcl 

Gpu target that leverages OpenCL.

Definition at line 292 of file Acl.hpp.

293 {
294  Cpu = AclCpu, /**< Cpu target that leverages SIMD */
295  GpuOcl = AclGpuOcl /**< Gpu target that leverages OpenCL */
296 };

◆ TuningMode

enum TuningMode
strong
Enumerator
Rapid 
Normal 
Exhaustive 

Definition at line 399 of file Acl.hpp.

400 {
401  Rapid = AclRapid,
402  Normal = AclNormal,
404 };
AclUnsupportedTarget
@ AclUnsupportedTarget
Call failed as an invalid backend was requested.
Definition: AclTypes.h:56
acl::Target::GpuOcl
@ GpuOcl
Gpu target that leverages OpenCL.
acl::DataType::Int8
@ Int8
AclCpu
@ AclCpu
Cpu target that uses SIMD extensions.
Definition: AclTypes.h:66
AclDataTypeUnknown
@ AclDataTypeUnknown
Unknown data type.
Definition: AclTypes.h:165
AclExhaustive
@ AclExhaustive
Exhaustive tuning mode, increased tuning time but with best results.
Definition: AclTypes.h:152
AclHostPtr
@ AclHostPtr
Host allocated memory.
Definition: AclTypes.h:188
AclUInt16
@ AclUInt16
16-bit unsigned integer
Definition: AclTypes.h:168
AclSuccess
@ AclSuccess
Call succeeded, leading to valid state for all involved objects/data.
Definition: AclTypes.h:52
acl::DataType::UInt8
@ UInt8
AclPreferFastStart
@ AclPreferFastStart
Prioritize performance when a single iterations is expected to be performed.
Definition: AclTypes.h:74
AclUnsupportedConfig
@ AclUnsupportedConfig
Call failed as configuration is unsupported.
Definition: AclTypes.h:59
AclInvalidObjectState
@ AclInvalidObjectState
Call failed as an object has invalid state.
Definition: AclTypes.h:60
acl::ExecutionMode::FastRerun
@ FastRerun
Prefer minimum latency in consecutive runs, might introduce higher startup times.
acl::StatusCode::UnsupportedConfig
@ UnsupportedConfig
AclRapid
@ AclRapid
Fast tuning mode, testing a small portion of the tuning space.
Definition: AclTypes.h:150
acl::DataType::Float16
@ Float16
AclOutOfMemory
@ AclOutOfMemory
Call failed due to failure to allocate resources.
Definition: AclTypes.h:54
AclInt32
@ AclInt32
32-bit signed integer
Definition: AclTypes.h:171
AclInvalidTarget
@ AclInvalidTarget
Call failed as invalid argument was passed.
Definition: AclTypes.h:57
AclFloat16
@ AclFloat16
16-bit floating point
Definition: AclTypes.h:172
acl::TuningMode::Normal
@ Normal
acl::StatusCode::InvalidArgument
@ InvalidArgument
AclUInt8
@ AclUInt8
8-bit unsigned integer
Definition: AclTypes.h:166
acl::StatusCode::InvalidTarget
@ InvalidTarget
AclPreferFastRerun
@ AclPreferFastRerun
Prioritize performance when multiple iterations are performed.
Definition: AclTypes.h:73
acl::DataType::BFloat16
@ BFloat16
acl::StatusCode::UnsupportedTarget
@ UnsupportedTarget
AclFloat32
@ AclFloat32
32-bit floating point
Definition: AclTypes.h:174
AclRuntimeError
@ AclRuntimeError
Call failed during execution.
Definition: AclTypes.h:53
AclInt8
@ AclInt8
8-bit signed integer
Definition: AclTypes.h:167
AclBFloat16
@ AclBFloat16
16-bit brain floating point
Definition: AclTypes.h:173
acl::StatusCode::InvalidObjectState
@ InvalidObjectState
acl::DataType::Float32
@ Float32
AclInvalidArgument
@ AclInvalidArgument
Call failed as invalid argument was passed.
Definition: AclTypes.h:58
acl::StatusCode::RuntimeError
@ RuntimeError
AclGpuOcl
@ AclGpuOcl
OpenCL target for GPU.
Definition: AclTypes.h:67
acl::DataType::Int16
@ Int16
acl::Target::Cpu
@ Cpu
Cpu target that leverages SIMD.
acl::ExecutionMode::FastStart
@ FastStart
Prefer minimizing startup time.
acl::TuningMode::Rapid
@ Rapid
acl::ImportType::Host
@ Host
AclNormal
@ AclNormal
Normal tuning mode, gives a good balance between tuning mode and performance.
Definition: AclTypes.h:151
acl::DataType::Int32
@ Int32
acl::DataType::UInt16
@ UInt16
acl::StatusCode::Unimplemented
@ Unimplemented
AclUint32
@ AclUint32
32-bit unsigned integer
Definition: AclTypes.h:170
AclInt16
@ AclInt16
16-bit signed integer
Definition: AclTypes.h:169
acl::StatusCode::OutOfMemory
@ OutOfMemory
acl::TuningMode::Exhaustive
@ Exhaustive
AclUnimplemented
@ AclUnimplemented
Call failed as requested capability is not implemented.
Definition: AclTypes.h:55
acl::StatusCode::Success
@ Success
acl::DataType::Unknown
@ Unknown
acl::DataType::UInt32
@ UInt32