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
1411a5ac
Commit
1411a5ac
authored
Apr 03, 2017
by
Chris Olivier
Committed by
Tianqi Chen
May 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake/make adjustments and warning fix (#106)
* CMake/make adjustments and warning fix * Fix warnings
parent
93ba9486
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
nnvm/CMakeLists.txt
+12
-1
nnvm/Makefile
+6
-0
nnvm/include/nnvm/tuple.h
+1
-1
No files found.
nnvm/CMakeLists.txt
View file @
1411a5ac
...
...
@@ -4,6 +4,10 @@ project(nnvm C CXX)
list
(
APPEND CMAKE_MODULE_PATH
${
PROJECT_SOURCE_DIR
}
/cmake/Modules
)
if
(
EXISTS
${
CMAKE_CURRENT_SOURCE_DIR
}
/build/private/local_config.cmake
)
include
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/build/private/local_config.cmake
)
endif
()
include
(
cmake/Utils.cmake
)
# include path
...
...
@@ -57,9 +61,16 @@ elseif(DMLC_CORE_PATH)
include_directories
(
${
DMLC_CORE_PATH
}
/include
)
endif
()
add_library
(
nnvm
${
SOURCE
}
)
add_library
(
nnvm
SHARED
${
SOURCE
}
)
target_link_libraries
(
nnvm
${
nnvm_LINKER_LIBS
}
)
if
(
INSTALL_INCLUDE_DIR
)
add_custom_command
(
TARGET nnvm POST_BUILD
COMMAND COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
${
CMAKE_SOURCE_DIR
}
/include
${
INSTALL_INCLUDE_DIR
}
/
)
endif
()
# ---[ Linter target
if
(
MSVC
)
find_package
(
PythonInterp 2
)
...
...
nnvm/Makefile
View file @
1411a5ac
...
...
@@ -18,6 +18,12 @@ else
CFLAGS
+=
-I
$(ROOTDIR)
/dmlc-core/include
endif
ifdef
DMLC_CORE_PATH
CFLAGS
+=
-I
$(DMLC_CORE_PATH)
/include
else
CFLAGS
+=
-I
$(ROOTDIR)
/dmlc-core/include
endif
ifneq
($(ADD_CFLAGS),
NONE)
CFLAGS
+=
$(ADD_CFLAGS)
endif
...
...
nnvm/include/nnvm/tuple.h
View file @
1411a5ac
...
...
@@ -443,7 +443,7 @@ class TShape : public Tuple<index_t> {
*/
template
<
int
dim
>
inline
mshadow
::
Shape
<
dim
>
get
()
const
{
CHECK_EQ
(
dim
,
ndim
(
))
CHECK_EQ
(
dim
,
static_cast
<
int
>
(
ndim
()
))
<<
"dimension do not match target dimension "
<<
dim
<<
" vs "
<<
ndim
();
const
index_t
*
d
=
this
->
data
();
mshadow
::
Shape
<
dim
>
s
;
...
...
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