Skip to content

Commit

Permalink
Merge pull request #1 from neo-ai/fix_win_build
Browse files Browse the repository at this point in the history
Fix Windows build for Neo DLR
  • Loading branch information
hcho3 authored Feb 6, 2019
2 parents cedebf7 + 7d96118 commit 4477957
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -326,5 +326,6 @@ if(MSVC)
target_compile_definitions(tvm_runtime PRIVATE -DHalide_EXPORTS)
target_compile_definitions(tvm PRIVATE -DTVM_EXPORTS)
target_compile_definitions(tvm_runtime PRIVATE -DTVM_EXPORTS)
target_compile_definitions(tvm_runtime_static PRIVATE -DTVM_DLL= -DTVM_DLL_PARALLEL_LAUNCH=__declspec(dllexport))
target_compile_definitions(nnvm_compiler PRIVATE -DNNVM_EXPORTS)
endif()
4 changes: 3 additions & 1 deletion include/tvm/runtime/c_backend_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ typedef int (*FTVMParallelLambda)(
*
* \return 0 when no error is thrown, -1 when failure happens
*/
TVM_DLL int TVMBackendParallelLaunch(FTVMParallelLambda flambda,
#define TVM_DLL_PARALLEL_LAUNCH

TVM_DLL_PARALLEL_LAUNCH int TVMBackendParallelLaunch(FTVMParallelLambda flambda,
void* cdata,
int num_task);

Expand Down

0 comments on commit 4477957

Please sign in to comment.