Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Fixing issue #17840 #18526

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixing cpu errors
Ubuntu committed Jun 10, 2020
commit bb8727b50dddbe7618951a790689b4a4f0848c55
2 changes: 2 additions & 0 deletions src/c_api/c_api.cc
Original file line number Diff line number Diff line change
@@ -1365,9 +1365,11 @@ int MXLoadTVMOp(const char *libpath) {
API_BEGIN();
tvm::runtime::TVMOpModule *libpath_module = tvm::runtime::TVMOpModule::Get();
libpath_module->Load(libpath);
#if MXNET_USE_CUDA
tvm::runtime::TVMOpModule cubin_module;
cubin_module.Load("libtvmop.cubin");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should combine with the libpath, otherwise it is loading from ./libtvmop.cubin

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Thanks!

libpath_module->Import(cubin_module);
#endif
API_END();
}