Face Engine SDK  5.26.0
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         CPU_AVX2_INT8,
00020 
00021         GPU_INT8, // GPU with INT8 inference. Only Pascal+
00022         CPU_ARM_INT8,
00023 
00024         NPU_ASCEND,
00025 
00026         Invalid = -1
00027     };
00028 
00034     struct LaunchOptions {
00035         DeviceClass deviceClass = DeviceClass::CPU_AUTO;
00036 
00037         // Cpu options
00038         bool runConcurrently = true;
00039 
00040         // External device options (GPU/NPU etc.)
00041         // Use defaultGpuDevice from runtime configuration
00042         static constexpr int32_t defaultDeviceId = -1;
00043         int32_t deviceId = defaultDeviceId;
00044     };
00045 } // namespace fsdk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines