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
8171351c
Commit
8171351c
authored
3 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Plain Diff
Merge branch 'bf/cudacxxflags' into 'master'
Bf/cudacxxflags See merge request
!35
parents
833861db
0b626129
No related branches found
No related tags found
1 merge request
!35
Bf/cudacxxflags
Pipeline
#11598
passed
3 years ago
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
+18
-4
18 additions, 4 deletions
config/buildSettings.mk
with
23 additions
and
4 deletions
CHANGELOG.md
+
5
−
0
View file @
8171351c
# FSL base project changelog
# FSL base project changelog
## 2111.7 (Friday 19th November 2021)
*
Fixed an issue in the construction of
`${NVCCFLAGS}`
and
`${CUDACXXFLAGS}`
.
## 2111.6 (Friday 19th November 2021)
## 2111.6 (Friday 19th November 2021)
*
New convention for compiling C++ files which are part of a CUDA library or
*
New convention for compiling C++ files which are part of a CUDA library or
...
...
This diff is collapsed.
Click to expand it.
config/buildSettings.mk
+
18
−
4
View file @
8171351c
...
@@ -168,16 +168,30 @@ ifneq (${NVCC}, )
...
@@ -168,16 +168,30 @@ ifneq (${NVCC}, )
CUDA_VER
=
$(
shell
${
NVCC
}
--version
|
grep
-Po
"release
\K
[0-9
\.
]+"
)
CUDA_VER
=
$(
shell
${
NVCC
}
--version
|
grep
-Po
"release
\K
[0-9
\.
]+"
)
GENCODEFLAGS
?=
$(
shell
${
FSLCONFDIR
}
/supportedGencodes.sh
${
CUDA_VER
})
GENCODEFLAGS
?=
$(
shell
${
FSLCONFDIR
}
/supportedGencodes.sh
${
CUDA_VER
})
# We use nvcc to compile .cu files, g++ to
# compile .cc/.cpp files, and nvcc to perform
# the final linking. So we need to manage
# compiler/linker flags carefully.
# CUDACXXFLAGS is to be used when compiling
# .cc/.cpp files which are to be linked into
# CUDA applications - CUDA-specific include
# paths, and any USRNVCCFLAGS are added to it.
#
# In contrast, NVCCFLAGS is used for compiling
# .cu files (and final linking) - it contains
# nvcc-specific options.
CUDACXXFLAGS
?=
-I
${
CUDA_HOME
}
/include
# We specify the compiler to use with -ccbin, as
# We specify the compiler to use with -ccbin, as
# nvcc might otherwise naively call "g++", rather
# nvcc might otherwise naively call "g++", rather
# than honouring $(CXX). We specifically use
# than honouring $(CXX). We specifically use
# "-ccbin" rather than "--compiler-bindir" here,
# "-ccbin" rather than "--compiler-bindir" here,
# because the conda-forge nvcc wrapper checks for
# because the conda-forge nvcc wrapper checks for
# -ccbin, and adds its own if not present.
# -ccbin, and adds its own if not present.
CUDACXXFLAGS
?=
-I
${
CUDA_HOME
}
/include
NVCCFLAGS
?=
${
GENCODEFLAGS
}
\
NVCCFLAGS
?=
${
GENCODEFLAGS
}
\
-ccbin
$(
CXX
)
\
-ccbin
$(
CXX
)
\
-I
${
CUDA_HOME
}
/include
${
CUDACXXFLAGS
}
NVCCLDFLAGS
?=
-L
${
CUDA_HOME
}
/lib
\
NVCCLDFLAGS
?=
-L
${
CUDA_HOME
}
/lib
\
-L
${
CUDA_HOME
}
/lib64
\
-L
${
CUDA_HOME
}
/lib64
\
-L
${
CUDA_HOME
}
/lib/stubs
\
-L
${
CUDA_HOME
}
/lib/stubs
\
...
...
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