TestCUDAToolkitCompatibility[]
checks if CUDALink is compatible with the installed NVIDIA CUDA Toolkit.
TestCUDAToolkitCompatibility
TestCUDAToolkitCompatibility[]
checks if CUDALink is compatible with the installed NVIDIA CUDA Toolkit.
更多信息和选项
- TestCUDAToolkitCompatibility gives Success if the detected major version of the NVIDIA CUDA Toolkit matches the required major version.
- If CUDALink can not find an NVIDIA CUDA Toolkit it returns a Failure object.
- If CUDALink finds an incompatible version of the NVIDIA CUDA Toolkit it returns a Failure object.
范例
基本范例 (1)
Needs["CUDALink`"]This returns Success if CUDALink is compatible with the installed NVIDIA CUDA Toolkit:
result = TestCUDAToolkitCompatibility[]This is the detected version of the NVIDIA CUDA Toolkit:
result["MajorVersionDetected"]This is the required version of the NVIDIA CUDA Toolkit:
result["MajorVersionRequired"]TestCUDAToolkitCompatibility will return Success if the detected and required major versions match. If these versions do not match, install a matching version of the NVIDIA CUDA Toolkit.
文本
Wolfram Research (2020),TestCUDAToolkitCompatibility,Wolfram 语言函数,https://reference.wolfram.com/language/CUDALink/ref/TestCUDAToolkitCompatibility.html.
CMS
Wolfram 语言. 2020. "TestCUDAToolkitCompatibility." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/TestCUDAToolkitCompatibility.html.
APA
Wolfram 语言. (2020). TestCUDAToolkitCompatibility. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/CUDALink/ref/TestCUDAToolkitCompatibility.html 年
BibTeX
@misc{reference.wolfram_2026_testcudatoolkitcompatibility, author="Wolfram Research", title="{TestCUDAToolkitCompatibility}", year="2020", howpublished="\url{https://reference.wolfram.com/language/CUDALink/ref/TestCUDAToolkitCompatibility.html}", note=[Accessed: 13-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_testcudatoolkitcompatibility, organization={Wolfram Research}, title={TestCUDAToolkitCompatibility}, year={2020}, url={https://reference.wolfram.com/language/CUDALink/ref/TestCUDAToolkitCompatibility.html}, note=[Accessed: 13-August-2026]}