Skip to content

Commit

Permalink
[Runtime] Add "TVM_DLL" to NDArray cache load func (#16541)
Browse files Browse the repository at this point in the history
The `NDArrayCacheMetadata::Load` function lacks the `TVM_DLL`
attribute which leads to build failure on Windows. This PR fixes the
issue.
  • Loading branch information
MasterJH5574 authored Feb 12, 2024
1 parent a6d644b commit 32f83d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/tvm/runtime/relax_vm/ndarray_cache_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ struct NDArrayCacheMetadata {
* \param staging_buffer The buffer to be used to avoid extra OpenCL copies. Pass in a nullptr
* in other cases
*/
NDArray Load(Device device, const std::string* raw_data,
Optional<NDArray>* staging_buffer = nullptr) const;
TVM_DLL NDArray Load(Device device, const std::string* raw_data,
Optional<NDArray>* staging_buffer = nullptr) const;

/*! \brief Name of the parameter */
std::string name;
Expand Down

0 comments on commit 32f83d5

Please sign in to comment.