2019-04-17 10:49:11 +08:00
|
|
|
//
|
|
|
|
// MetalDefine.h
|
|
|
|
// MNN
|
|
|
|
//
|
|
|
|
// Created by MNN on 2019/01/30.
|
|
|
|
// Copyright © 2018, Alibaba Group Holding Limited
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef MetalDefine_h
|
|
|
|
#define MetalDefine_h
|
|
|
|
|
2020-11-05 16:41:56 +08:00
|
|
|
|
|
|
|
#ifdef MNN_METAL_ENABLED
|
2019-04-17 10:49:11 +08:00
|
|
|
#if !defined(__APPLE__)
|
2020-11-05 16:41:56 +08:00
|
|
|
#undef MNN_METAL_ENABLED
|
2019-04-17 10:49:11 +08:00
|
|
|
#define MNN_METAL_ENABLED 0
|
|
|
|
#else
|
|
|
|
#import <Metal/Metal.h>
|
|
|
|
#import <float.h>
|
|
|
|
#endif
|
|
|
|
|
2020-11-05 16:41:56 +08:00
|
|
|
#endif
|
2019-04-17 10:49:11 +08:00
|
|
|
#ifndef MNN_METAL_DEBUG
|
|
|
|
#if DEBUG
|
|
|
|
#define MNN_METAL_DEBUG 1
|
|
|
|
#else
|
|
|
|
#define MNN_METAL_DEBUG 0
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define MNN_METAL_BENCHMARK 0
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* MetalDefine_h */
|