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
fe0f99b2
Commit
fe0f99b2
authored
Jul 18, 2018
by
Tatsuya Nishiyama
Committed by
Tianqi Chen
Jul 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cmake for building with cuda in msvc (#1437)
parent
25db77f8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
13 deletions
+7
-13
cmake/util/FindCUDA.cmake
+7
-7
src/runtime/cuda/cuda_device_api.cc
+0
-3
src/runtime/opencl/sdaccel/sdaccel_device_api.cc
+0
-3
No files found.
cmake/util/FindCUDA.cmake
View file @
fe0f99b2
...
...
@@ -29,8 +29,8 @@ macro(find_cuda use_cuda)
set
(
CUDA_FOUND TRUE
)
if
(
MSVC
)
find_library
(
CUDA_CUDART_LIBRARY cudart
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib64
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib
)
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib
/x
64
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib
/Win32
)
else
(
MSVC
)
find_library
(
CUDA_CUDART_LIBRARY cudart
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib64
...
...
@@ -41,18 +41,18 @@ macro(find_cuda use_cuda)
# additional libraries
if
(
CUDA_FOUND
)
if
(
MSVC
)
find_library
(
CUDA_
NVRTC
_LIBRARY cuda
find_library
(
CUDA_
CUDA
_LIBRARY cuda
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib/x64
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib/
w
in32
)
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib/
W
in32
)
find_library
(
CUDA_NVRTC_LIBRARY nvrtc
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib/x64
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib/
w
in32
)
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib/
W
in32
)
find_library
(
CUDA_CUDNN_LIBRARY cudnn
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib/x64
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib/
w
in32
)
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib/
W
in32
)
find_library
(
CUDA_CUBLAS_LIBRARY cublas
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib/x64
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib/
w
in32
)
${
CUDA_TOOLKIT_ROOT_DIR
}
/lib/
W
in32
)
else
(
MSVC
)
find_library
(
_CUDA_CUDA_LIBRARY cuda
PATHS
${
CUDA_TOOLKIT_ROOT_DIR
}
...
...
src/runtime/cuda/cuda_device_api.cc
View file @
fe0f99b2
...
...
@@ -8,9 +8,6 @@
#include <dmlc/thread_local.h>
#include <tvm/runtime/registry.h>
#include <cuda_runtime.h>
#include <tvm/container.h>
#include <tvm/ir.h>
#include <tvm/packed_func_ext.h>
#include "./cuda_common.h"
namespace
tvm
{
...
...
src/runtime/opencl/sdaccel/sdaccel_device_api.cc
View file @
fe0f99b2
...
...
@@ -4,9 +4,6 @@
*/
#include <tvm/runtime/registry.h>
#include <dmlc/thread_local.h>
#include <tvm/container.h>
#include <tvm/ir.h>
#include <tvm/packed_func_ext.h>
#include "./sdaccel_common.h"
namespace
tvm
{
...
...
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