Face Engine SDK  5.23.1
A face detection, recognition and tracking engine.
include/fsdk/LaunchOptions.h
00001 #pragma once
00002 
00003 #include <cstdint>
00004 
00005 namespace fsdk {
00006 
00011     enum class DeviceClass : int32_t {
00012         CPU = 0,
00013 
00014         GPU = 1,
00015 
00016         CPU_ARM = 2,
00017         CPU_AVX2, // CPU with AVX2/SSE4.2 ISA support
00018         CPU_AUTO, // if AVX2 is available, CPU_AVX2 will be taken, otherwise CPU
00019 
00020         GPU_INT8, // GPU with INT8 inference. Only Pascal+
00021         CPU_ARM_INT8,
00022 
00023         NPU_ASCEND,
00024 
00025         Invalid = -1
00026     };
00027 
00033     struct LaunchOptions {
00034         DeviceClass deviceClass = DeviceClass::CPU_AUTO;
00035 
00036         // Cpu options
00037         bool runConcurrently = true;
00038 
00039         // External device options (GPU/NPU etc.)
00040         // Use defaultGpuDevice from runtime configuration
00041         static constexpr int32_t defaultDeviceId = -1;
00042         int32_t deviceId = defaultDeviceId;
00043     };
00044 } // namespace fsdk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines