mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-25 04:25:29 +08:00
cuda: Added docs for extended cuda toolset
This commit is contained in:
@@ -111,6 +111,7 @@ Variables that Provide Information
|
|||||||
/variable/CMAKE_VS_PLATFORM_NAME_DEFAULT
|
/variable/CMAKE_VS_PLATFORM_NAME_DEFAULT
|
||||||
/variable/CMAKE_VS_PLATFORM_TOOLSET
|
/variable/CMAKE_VS_PLATFORM_TOOLSET
|
||||||
/variable/CMAKE_VS_PLATFORM_TOOLSET_CUDA
|
/variable/CMAKE_VS_PLATFORM_TOOLSET_CUDA
|
||||||
|
/variable/CMAKE_VS_PLATFORM_TOOLSET_CUDA_CUSTOM_DIR
|
||||||
/variable/CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE
|
/variable/CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE
|
||||||
/variable/CMAKE_VS_PLATFORM_TOOLSET_VERSION
|
/variable/CMAKE_VS_PLATFORM_TOOLSET_VERSION
|
||||||
/variable/CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION
|
/variable/CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION
|
||||||
|
|||||||
@@ -40,10 +40,13 @@ The ``key=value`` pairs form a comma-separated list of options to
|
|||||||
specify generator-specific details of the toolset selection.
|
specify generator-specific details of the toolset selection.
|
||||||
Supported pairs are:
|
Supported pairs are:
|
||||||
|
|
||||||
``cuda=<version>``
|
``cuda=<version>|<path>``
|
||||||
Specify the CUDA toolkit version to use. Supported by VS 2010
|
Specify the CUDA toolkit version to use or the path to a
|
||||||
and above with the CUDA toolkit VS integration installed.
|
standalone CUDA toolkit directory. Supported by VS 2010
|
||||||
See the :variable:`CMAKE_VS_PLATFORM_TOOLSET_CUDA` variable.
|
and above. The version can only be used with the CUDA
|
||||||
|
toolkit VS integration globally installed.
|
||||||
|
See the :variable:`CMAKE_VS_PLATFORM_TOOLSET_CUDA` and
|
||||||
|
:variable:`CMAKE_VS_PLATFORM_TOOLSET_CUDA_CUSTOM_DIR` variables.
|
||||||
|
|
||||||
``host=<arch>``
|
``host=<arch>``
|
||||||
Specify the host tools architecture as ``x64`` or ``x86``.
|
Specify the host tools architecture as ``x64`` or ``x86``.
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ NVIDIA CUDA Toolkit version whose Visual Studio toolset to use.
|
|||||||
The :ref:`Visual Studio Generators` for VS 2010 and above support using
|
The :ref:`Visual Studio Generators` for VS 2010 and above support using
|
||||||
a CUDA toolset provided by a CUDA Toolkit. The toolset version number
|
a CUDA toolset provided by a CUDA Toolkit. The toolset version number
|
||||||
may be specified by a field in :variable:`CMAKE_GENERATOR_TOOLSET` of
|
may be specified by a field in :variable:`CMAKE_GENERATOR_TOOLSET` of
|
||||||
the form ``cuda=8.0``. If none is specified CMake will choose a default
|
the form ``cuda=8.0``. Or it is automatically detected if a path to
|
||||||
version. CMake provides the selected CUDA toolset version in this variable.
|
a standalone CUDA directory is specified in the form ``cuda=C:\path\to\cuda``.
|
||||||
|
If none is specified CMake will choose a default version.
|
||||||
|
CMake provides the selected CUDA toolset version in this variable.
|
||||||
The value may be empty if no CUDA Toolkit with Visual Studio integration
|
The value may be empty if no CUDA Toolkit with Visual Studio integration
|
||||||
is installed.
|
is installed.
|
||||||
|
|||||||
16
Help/variable/CMAKE_VS_PLATFORM_TOOLSET_CUDA_CUSTOM_DIR.rst
Normal file
16
Help/variable/CMAKE_VS_PLATFORM_TOOLSET_CUDA_CUSTOM_DIR.rst
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
CMAKE_VS_PLATFORM_TOOLSET_CUDA_CUSTOM_DIR
|
||||||
|
-----------------------------------------
|
||||||
|
|
||||||
|
Path to standalone NVIDIA CUDA Toolkit (eg. extracted from installer).
|
||||||
|
|
||||||
|
The :ref:`Visual Studio Generators` for VS 2010 and above support using
|
||||||
|
a standalone (non-installed) NVIDIA CUDA toolkit. The path
|
||||||
|
may be specified by a field in :variable:`CMAKE_GENERATOR_TOOLSET` of
|
||||||
|
the form ``cuda=C:\path\to\cuda``. The given directory must at least
|
||||||
|
contain a folder ``.\nvcc`` and must provide Visual Studio integration
|
||||||
|
files in path ``.\CUDAVisualStudioIntegration\extras\
|
||||||
|
visual_studio_integration\MSBuildExtensions\``. One can create a standalone
|
||||||
|
CUDA toolkit directory by either opening a installer with 7zip or
|
||||||
|
copying the files that are extracted by the running installer.
|
||||||
|
The value may be empty if no path to a standalone CUDA Toolkit was
|
||||||
|
specified.
|
||||||
Reference in New Issue
Block a user