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
3ba1d817
Commit
3ba1d817
authored
3 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Update CUDA build overview
parent
f1af31b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!16
Rf/default cuda home
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+3
-12
3 additions, 12 deletions
README.md
with
3 additions
and
12 deletions
README.md
+
3
−
12
View file @
3ba1d817
...
...
@@ -22,20 +22,12 @@ in Python, and are executed with `pytest`.
Some FSL projects (e.g. [
`fsl/eddy`
(https://git.fmrib.ox.ac.uk/fsl/eddy) use
CUDA for GPU acceleration. In order to compile these projects, the
`nvcc`
compiler must be available on your
`$PATH`
, and you must provide the following
variables:
-
`CUDA_VER`
: CUDA version, in
`major.minor`
format, e.g.
`10.2`
. If not set,
defaults to the version reported by
`nvcc --version`
.
-
`CUDA_HOME`
: Path to the CUDA installation that the project should be
compiled against. If not set, defaults to
`/usr/local/cuda-X.Y`
, where
`X.Y`
is the value of
`CUDA_VER`
.
compiler must be available on your
`$PATH`
, or a variable called
`$NVCC`
must
refer to the
`nvcc`
executable to use.
The following additional options may be used to control compilation of a CUDA
project:
-
`NVCC`
: Path to a specific
`nvcc`
executable
-
`CUDA_STATIC`
: Statically link against the CUDA runtime and certain;
CUDA Toolkit libraris (default is to use dynamic linking).
-
`GENCODEFLAGS`
:
`-gencode`
options specifying the device architectures to
...
...
@@ -45,8 +37,7 @@ project:
For example, to compile a CUDA project with a specific CUDA installation, and
using static linking:
export CUDA_HOME=/usr/local/cuda-10.1
export PATH=$CUDA_HOME/bin:$PATH
export PATH=/usr/local/cuda-10.2/bin:$PATH
make CUDA_STATIC=1
The
`Makefile`
for each FSL CUDA project may provide additional options for
...
...
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