Skip to content

Commit

Permalink
Fix builds for TVM on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
saudet committed Jan 16, 2024
1 parent 3fd9228 commit 38b02f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
26 changes: 6 additions & 20 deletions tvm/src/gen/java/org/bytedeco/tvm/global/tvm_runtime.java
Original file line number Diff line number Diff line change
Expand Up @@ -676,18 +676,12 @@ public class tvm_runtime extends org.bytedeco.tvm.presets.tvm_runtime {
// return Name;
// }
// }
// Targeting ../is_pod.java


// Targeting ../is_integral.java


// Targeting ../is_floating_point.java


// Targeting ../type_name_helper.java

/** \cond Doxygen_Suppress */
// declare special traits when C++11 is not available
// #if DMLC_USE_CXX11 == 0

// #endif
/** \endcond */
// namespace dmlc
// #endif // DMLC_TYPE_TRAITS_H_
Expand Down Expand Up @@ -2759,9 +2753,6 @@ public static native int TVMObjectDerivedFrom(@Cast("uint32_t") int child_type_i
// #include <dmlc/serializer.h>
// #include <tvm/runtime/c_runtime_api.h>
// #include <tvm/runtime/ndarray.h>
// Targeting ../Handler.java



// namespace serializer
// namespace dmlc
Expand Down Expand Up @@ -3170,9 +3161,8 @@ public static native int TVMObjectDerivedFrom(@Cast("uint32_t") int child_type_i
*/

// handle case of function.
// Targeting ../Type2Str.java


// handle case of function ptr.

/**
* \brief Template class to remove const, pointer and reference of original type.
Expand All @@ -3191,9 +3181,6 @@ public static native int TVMObjectDerivedFrom(@Cast("uint32_t") int child_type_i



// Targeting ../typed_packed_call_dispatcher.java


// namespace detail


Expand Down Expand Up @@ -3230,9 +3217,8 @@ public static native int TVMObjectDerivedFrom(@Cast("uint32_t") int child_type_i



// Targeting ../PackedFuncValueConverter.java


// specializations of PackedFuncValueConverter



Expand Down
3 changes: 2 additions & 1 deletion tvm/src/main/java/org/bytedeco/tvm/presets/tvm_runtime.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
value = {"linux", "macosx", "windows"},
compiler = "cpp17",
define = {"GENERIC_EXCEPTION_CLASS std::exception", "GENERIC_EXCEPTION_TOSTRING what()", "DMLC_USE_LOGGING_LIBRARY <tvm/runtime/logging.h>"},
exclude = {"<polly/LinkAllPasses.h>", "<FullOptimization.h>", "<NamedMetadataOperations.h>"},
exclude = {"<polly/LinkAllPasses.h>", "<FullOptimization.h>", "<NamedMetadataOperations.h>",
"openblas_config.h", "cblas.h", "lapacke_config.h", "lapacke_mangling.h", "lapack.h", "lapacke.h", "lapacke_utils.h"},
include = {
"dlpack/dlpack.h",
"dmlc/base.h",
Expand Down

0 comments on commit 38b02f5

Please sign in to comment.