diff options
author | Aleksey Gurtovoy <agurtovoy@acm.org> | 2019-10-04 18:34:02 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-05 22:17:44 +0200 |
commit | f56ef583d3c8ecda7725ca04b48011c9081a7349 (patch) | |
tree | dca107fce3c6cafa32e575406020be827b6197fa /docs/markdown | |
parent | 11f1adb7ddc800b8c016f3ee40e979a377ba9c01 (diff) | |
download | meson-f56ef583d3c8ecda7725ca04b48011c9081a7349.zip meson-f56ef583d3c8ecda7725ca04b48011c9081a7349.tar.gz meson-f56ef583d3c8ecda7725ca04b48011c9081a7349.tar.bz2 |
dependency('cuda')
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Dependencies.md | 16 | ||||
-rw-r--r-- | docs/markdown/snippets/cuda_dependency.md | 11 |
2 files changed, 27 insertions, 0 deletions
diff --git a/docs/markdown/Dependencies.md b/docs/markdown/Dependencies.md index 49c0962..a3ae199 100644 --- a/docs/markdown/Dependencies.md +++ b/docs/markdown/Dependencies.md @@ -285,6 +285,22 @@ environment variables. You can set the argument `threading` to `single` to use boost libraries that have been compiled for single-threaded use instead. +## CUDA + +*(added 0.53.0)* + +Enables compiling and linking against the CUDA Toolkit. The `version` +and `modules` keywords may be passed to request the use of a specific +CUDA Toolkit version and/or additional CUDA libraries, correspondingly: + +```meson +dep = dependency('cuda', version : '>=10', modules : ['cublas']) +``` + +Note that explicitly adding this dependency is only necessary if you are +using CUDA Toolkit from a C/C++ file or project, or if you are utilizing +additional toolkit libraries that need to be explicitly linked to. + ## CUPS `method` may be `auto`, `config-tool`, `pkg-config`, `cmake` or `extraframework`. diff --git a/docs/markdown/snippets/cuda_dependency.md b/docs/markdown/snippets/cuda_dependency.md new file mode 100644 index 0000000..1cc9ae6 --- /dev/null +++ b/docs/markdown/snippets/cuda_dependency.md @@ -0,0 +1,11 @@ +## CUDA dependency + +Native support for compiling and linking against the CUDA Toolkit using +the `dependency` function: + +```meson +project('CUDA test', 'cpp', meson_version: '>= 0.53.0') +exe = executable('prog', 'prog.cc', dependencies: dependency('cuda')) +``` + +See [the CUDA dependency](Dependencies.md#cuda) for more information. |