Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tvm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cld
ml
tvm
Commits
75b93d30
Commit
75b93d30
authored
7 years ago
by
Atsushi Nukariya
Committed by
Tianqi Chen
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[BUILD] Windows build with cuDNN support (#999)
parent
89d5e552
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+20
-0
20 additions, 0 deletions
CMakeLists.txt
with
20 additions
and
0 deletions
CMakeLists.txt
+
20
−
0
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment