Loading...
Searching...
No Matches
Go to the documentation of this file.
24#ifndef TVM_RUNTIME_BASE_H_
25#define TVM_RUNTIME_BASE_H_
29#include <tvm/ffi/c_api.h>
35#define TVM_VERSION "0.28.dev0"
57#include <emscripten/emscripten.h>
61#if !defined(TVM_DLL) && defined(__EMSCRIPTEN__)
62#define TVM_DLL EMSCRIPTEN_KEEPALIVE
63#define TVM_DLL_EXPORT EMSCRIPTEN_KEEPALIVE
65#if !defined(TVM_DLL) && defined(_MSC_VER)
67#define TVM_DLL __declspec(dllexport)
69#define TVM_DLL __declspec(dllimport)
71#define TVM_DLL_EXPORT __declspec(dllexport)
74#define TVM_DLL __attribute__((visibility("default")))
75#define TVM_DLL_EXPORT __attribute__((visibility("default")))
83#define TVM_TIRX_DLL TVM_DLL
87#if !defined(TVM_RUNTIME_DLL) && defined(__EMSCRIPTEN__)
88#define TVM_RUNTIME_DLL EMSCRIPTEN_KEEPALIVE
89#define TVM_RUNTIME_DLL_EXPORT EMSCRIPTEN_KEEPALIVE
91#if !defined(TVM_RUNTIME_DLL) && defined(_MSC_VER)
92#ifdef TVM_RUNTIME_EXPORTS
93#define TVM_RUNTIME_DLL __declspec(dllexport)
95#define TVM_RUNTIME_DLL __declspec(dllimport)
97#define TVM_RUNTIME_DLL_EXPORT __declspec(dllexport)
99#ifndef TVM_RUNTIME_DLL
100#define TVM_RUNTIME_DLL __attribute__((visibility("default")))
101#define TVM_RUNTIME_DLL_EXPORT __attribute__((visibility("default")))