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>
32 #define TVM_VERSION "0.25.dev0"
53 #include <emscripten/emscripten.h>
57 #if !defined(TVM_DLL) && defined(__EMSCRIPTEN__)
58 #define TVM_DLL EMSCRIPTEN_KEEPALIVE
59 #define TVM_DLL_EXPORT EMSCRIPTEN_KEEPALIVE
61 #if !defined(TVM_DLL) && defined(_MSC_VER)
63 #define TVM_DLL __declspec(dllexport)
65 #define TVM_DLL __declspec(dllimport)
67 #define TVM_DLL_EXPORT __declspec(dllexport)
70 #define TVM_DLL __attribute__((visibility("default")))
71 #define TVM_DLL_EXPORT __attribute__((visibility("default")))
75 #if !defined(TVM_RUNTIME_DLL) && defined(__EMSCRIPTEN__)
76 #define TVM_RUNTIME_DLL EMSCRIPTEN_KEEPALIVE
77 #define TVM_RUNTIME_DLL_EXPORT EMSCRIPTEN_KEEPALIVE
79 #if !defined(TVM_RUNTIME_DLL) && defined(_MSC_VER)
80 #ifdef TVM_RUNTIME_EXPORTS
81 #define TVM_RUNTIME_DLL __declspec(dllexport)
83 #define TVM_RUNTIME_DLL __declspec(dllimport)
85 #define TVM_RUNTIME_DLL_EXPORT __declspec(dllexport)
87 #ifndef TVM_RUNTIME_DLL
88 #define TVM_RUNTIME_DLL __attribute__((visibility("default")))
89 #define TVM_RUNTIME_DLL_EXPORT __attribute__((visibility("default")))