2021-09-18 15:52:30 +08:00
|
|
|
//
|
|
|
|
|
// AVX2Functions.hpp
|
|
|
|
|
// MNN
|
|
|
|
|
//
|
|
|
|
|
// Created by MNN on b'2021/05/17'.
|
|
|
|
|
// Copyright © 2018, Alibaba Group Holding Limited
|
|
|
|
|
//
|
|
|
|
|
|
2021-06-11 17:17:13 +08:00
|
|
|
#ifndef AVX2Functions_hpp
|
|
|
|
|
#define AVX2Functions_hpp
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include "core/Macro.h"
|
|
|
|
|
#include "backend/cpu/compute/CommonOptFunction.h"
|
2021-09-18 15:52:30 +08:00
|
|
|
#include "backend/cpu/compute/Int8FunctionsOpt.h"
|
2021-06-11 17:17:13 +08:00
|
|
|
#include "cpu_id.h"
|
|
|
|
|
|
|
|
|
|
namespace MNN {
|
|
|
|
|
class AVX2Functions {
|
|
|
|
|
public:
|
|
|
|
|
static bool init(int flags);
|
|
|
|
|
static CoreFunctions* get();
|
2021-09-18 15:52:30 +08:00
|
|
|
static CoreInt8Functions* getInt8();
|
2021-06-11 17:17:13 +08:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|