Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
c6c2e156
Commit
c6c2e156
authored
Nov 09, 2017
by
Tianqi Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CMAKE] Update cmake to support OSX/Linux (#228)
parent
510105fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
nnvm/CMakeLists.txt
+8
-3
nnvm/python/nnvm/libinfo.py
+1
-0
No files found.
nnvm/CMakeLists.txt
View file @
c6c2e156
...
...
@@ -43,10 +43,10 @@ if(MSVC)
endif
(
${
flag_var
}
MATCHES
"/MD"
)
endforeach
(
flag_var
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/EHsc"
)
find_library
(
TVM_LIB tvm
find_library
(
TVM_LIB tvm
HINTS
${
CMAKE_CURRENT_SOURCE_DIR
}
/../tvm/build/Release
HINTS
${
CMAKE_CURRENT_SOURCE_DIR
}
/tvm/build/Release
)
message
(
STATUS
"Build with TVM libary: "
${
TVM_LIB
}
)
HINTS
${
CMAKE_CURRENT_SOURCE_DIR
}
/tvm/build/Release
)
message
(
STATUS
"Build with TVM libary: "
${
TVM_LIB
}
)
list
(
APPEND NNVM_COMPILER_LINKER_LIBS
${
TVM_LIB
}
)
else
(
MSVC
)
include
(
CheckCXXCompilerFlag
)
...
...
@@ -55,6 +55,11 @@ else(MSVC)
set
(
CMAKE_CXX_FLAGS
${
CMAKE_C_FLAGS
}
)
endif
(
MSVC
)
if
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Darwin"
)
set
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
-undefined dynamic_lookup"
)
endif
()
mxnet_source_group
(
"Include
\\
c_api"
GLOB
"src/c_api/*.h"
)
mxnet_source_group
(
"Include
\\
core"
GLOB
"src/core/*.h"
)
mxnet_source_group
(
"Include
\\
pass"
GLOB
"src/pass/*.h"
)
...
...
nnvm/python/nnvm/libinfo.py
View file @
c6c2e156
...
...
@@ -30,6 +30,7 @@ def find_lib_path():
api_path
=
os
.
path
.
join
(
base_path
,
'../../lib/'
)
cmake_build_path
=
os
.
path
.
join
(
base_path
,
'../../build/Release/'
)
cmake_build_path
=
os
.
path
.
join
(
base_path
,
'../../build/'
)
dll_path
=
[
base_path
,
api_path
,
cmake_build_path
]
if
sys
.
platform
.
startswith
(
'linux'
)
and
os
.
environ
.
get
(
'LD_LIBRARY_PATH'
,
None
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment