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.26.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")))
79#if !defined(TVM_RUNTIME_DLL) && defined(__EMSCRIPTEN__)
80#define TVM_RUNTIME_DLL EMSCRIPTEN_KEEPALIVE
81#define TVM_RUNTIME_DLL_EXPORT EMSCRIPTEN_KEEPALIVE
83#if !defined(TVM_RUNTIME_DLL) && defined(_MSC_VER)
84#ifdef TVM_RUNTIME_EXPORTS
85#define TVM_RUNTIME_DLL __declspec(dllexport)
87#define TVM_RUNTIME_DLL __declspec(dllimport)
89#define TVM_RUNTIME_DLL_EXPORT __declspec(dllexport)
91#ifndef TVM_RUNTIME_DLL
92#define TVM_RUNTIME_DLL __attribute__((visibility("default")))
93#define TVM_RUNTIME_DLL_EXPORT __attribute__((visibility("default")))