Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
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
Container Registry
Model registry
Operate
Environments
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
FSL
base
Commits
1c4672a5
Commit
1c4672a5
authored
3 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Plain Diff
Merge branch 'rf/cuda-linking' into 'master'
Rf/cuda linking See merge request
!15
parents
7561ad00
e894f39c
No related branches found
No related tags found
1 merge request
!15
Rf/cuda linking
Pipeline
#9614
passed
3 years ago
Stage: test
Stage: fsl-ci-build
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+5
-0
5 additions, 0 deletions
CHANGELOG.md
config/buildSettings.mk
+20
-8
20 additions, 8 deletions
config/buildSettings.mk
with
25 additions
and
8 deletions
CHANGELOG.md
+
5
−
0
View file @
1c4672a5
# FSL base project changelog
# FSL base project changelog
## 2107.2 (Sunday 11th July 2021)
-
Further tweaks to CUDA linking logic.
## 2107.1 (Friday 9th July 2021)
## 2107.1 (Friday 9th July 2021)
-
Fix an issue with CUDA linking.
-
Fix an issue with CUDA linking.
...
...
This diff is collapsed.
Click to expand it.
config/buildSettings.mk
+
20
−
8
View file @
1c4672a5
...
@@ -153,15 +153,27 @@ ifneq ($(shell which nvcc), )
...
@@ -153,15 +153,27 @@ ifneq ($(shell which nvcc), )
# was invoked with "make CUDA_STATIC=1".
# was invoked with "make CUDA_STATIC=1".
_CUDALIBS
=
-lcuda
_CUDALIBS
=
-lcuda
ifdef
CUDA_STATIC
ifdef
CUDA_STATIC
# The cuda/cudart libs are handled by nvcc.
Other
# The cuda/cudart
/cudadevrt
libs are handled by nvcc.
# components of the CUDA toolkit are provided
as
#
Other
components of the CUDA toolkit are provided
# both dynamic and static libraries. "_CUDALIBS"
#
as
both dynamic and static libraries. "_CUDALIBS"
# is what is used to construct the final NVCCLDFLAGS
# is what is used to construct the final NVCCLDFLAGS
# (see vars.mk)
# (see vars.mk).
# Other CUDA toolkit components will be added here
#
# on an as-needed basis.
# --cudadevrt was added in CUDA/nvcc 10.*
NVCCFLAGS
+=
--cudart
=
static
--cudadevrt
=
static
#
_CUDALIBS
+=
$(
subst
-lcublas
,-lcublas_static
-lcublasLt_static
-lculibos
,
\
# In CUDA 10.* and newer, cublas_static requires
# cublas_Lt_static, in addition to culibos
ifeq
($(patsubst 9.%,,${CUDA_VER}),)
CUBLAS_STATIC
=
-lcublas_static
-lculibos
NVCCFLAGS
+=
--cudart
=
static
else
CUBLAS_STATIC
=
-lcublas_static
-lcublasLt_static
-lculibos
NVCCFLAGS
+=
--cudart
=
static
--cudadevrt
=
static
endif
# Other CUDA toolkit components will
# be added here on an as-needed basis.
_CUDALIBS
+=
$(
subst
-lcublas
,
${
CUBLAS_STATIC
}
,
\
$(
subst
-lcurand
,-lcurand_static,
${
CUDALIBS
}))
$(
subst
-lcurand
,-lcurand_static,
${
CUDALIBS
}))
else
else
NVCCFLAGS
+=
--cudart
=
shared
--cudadevrt
=
static
NVCCFLAGS
+=
--cudart
=
shared
--cudadevrt
=
static
...
...
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