Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
instant-ngp-tomography
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Pickles
instant-ngp-tomography
Commits
e7e3137b
Commit
e7e3137b
authored
3 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
Link against CUDA dynamically rather than statically
parent
1d3a4159
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
+4
-3
4 additions, 3 deletions
CMakeLists.txt
with
4 additions
and
3 deletions
CMakeLists.txt
+
4
−
3
View file @
e7e3137b
...
...
@@ -66,6 +66,7 @@ set(CMAKE_CUDA_STANDARD 14)
set
(
CMAKE_CUDA_STANDARD_REQUIRED ON
)
set
(
CMAKE_CUDA_EXTENSIONS OFF
)
set
(
CUDA_LINK_LIBRARIES_KEYWORD PUBLIC
)
set
(
CMAKE_CUDA_RUNTIME_LIBRARY Shared
)
if
(
MSVC
)
list
(
APPEND CUDA_NVCC_FLAGS
"-Xcompiler=-bigobj"
)
...
...
@@ -365,10 +366,10 @@ if (Python_FOUND)
if
(
MSVC
)
# Copy dlls needed at runtime
file
(
GLOB CU
BLAS
_DLLS
"
${
CUDA_COMPILER_BIN
}
/cublas*.dll"
)
if
(
CU
BLAS
_DLLS
)
file
(
GLOB CU
DA
_DLLS
"
${
CUDA_COMPILER_BIN
}
/cublas*.dll"
"
${
CUDA_COMPILER_BIN
}
/cudart64*.dll"
"
${
CUDA_COMPILER_BIN
}
/cusolver64*.dll"
)
if
(
CU
DA
_DLLS
)
add_custom_command
(
TARGET pyngp POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
CU
BLAS
_DLLS
}
$<TARGET_FILE_DIR:pyngp>
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
CU
DA
_DLLS
}
$<TARGET_FILE_DIR:pyngp>
COMMAND_EXPAND_LISTS
)
endif
()
...
...
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