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
75b93d30
Commit
75b93d30
authored
Mar 13, 2018
by
Atsushi Nukariya
Committed by
Tianqi Chen
Mar 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUILD] Windows build with cuDNN support (#999)
parent
89d5e552
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
CMakeLists.txt
+20
-0
No files found.
CMakeLists.txt
View file @
75b93d30
...
...
@@ -32,6 +32,8 @@ tvm_option(USE_RTTI "Build with RTTI" ON)
tvm_option
(
USE_MSVC_MT
"Build with MT"
OFF
)
tvm_option
(
INSTALL_DEV
"Install compiler infrastructure"
OFF
)
tvm_option
(
USE_CUDNN
"Build with cuDNN"
OFF
)
include_directories
(
"include"
)
include_directories
(
"HalideIR/src"
)
include_directories
(
"dlpack/include"
)
...
...
@@ -126,6 +128,24 @@ find_library(CUDA_NVRTC_LIBRARIES nvrtc
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib
)
list
(
APPEND TVM_LINKER_LIBS
${
CUDA_NVRTC_LIB
}
)
endif
(
MSVC
)
if
(
USE_CUDNN
)
message
(
STATUS
"Build with cuDNN support"
)
file
(
GLOB CONTRIB_CUDNN_SRCS src/contrib/cudnn/*.cc
)
list
(
APPEND RUNTIME_SRCS
${
CONTRIB_CUDNN_SRCS
}
)
if
(
MSVC
)
find_library
(
CUDA_CUDNN_LIB cudnn
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib/x64
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib/win32
)
list
(
APPEND TVM_RUNTIME_LINKER_LIBS
${
CUDA_CUDNN_LIB
}
)
else
(
MSVC
)
find_library
(
CUDA_CUDNN_LIB cudnn
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib64
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib
)
list
(
APPEND TVM_RUNTIME_LINKER_LIBS
${
CUDA_CUDNN_LIB
}
)
endif
(
MSVC
)
endif
(
USE_CUDNN
)
add_definitions
(
-DTVM_CUDA_RUNTIME=1
)
else
(
USE_CUDA
)
add_definitions
(
-DTVM_CUDA_RUNTIME=0
)
...
...
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