commit | 1241aea53e75dab24b82f20e705fd290c5d445ea | [log] [tgz] |
---|---|---|
author | Olli Etuaho <oetuaho@nvidia.com> | Thu Aug 09 07:49:15 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Aug 09 07:49:15 2018 |
tree | dc5c24502e2897df8886b97b43d16cff25f84ac1 | |
parent | b4ce470befb0d8c9fc690320e99c89e68ac019b1 [diff] |
Get NVIDIA driver version from NVML on 64-bit Windows NVML provides a more reliable way to query for the NVIDIA driver version. It also provides a query for NVIDIA CUDA compute capability which corresponds to the GPU generation. This is a good value to use for filtering GPUs based on hardware properties. We now query NVML for driver version and CUDA compute capability in case an NVIDIA GPU is encountered on Windows. NVML is loaded dynamically from %ProgramW6432%/NVIDIA Corporation/NVSMI/nvml.dll. In recent drivers the library is only shipped as a 64-bit binary, so it won't load in case the 32-bit build of Chromium is used. As a fallback, the actual NVIDIA driver version is parsed from the driver version in the Windows registry. This best-effort parsing should work for most versions, though every single version may not conform to the expected format. NVML has been present in NVIDIA drivers since version 270 published in 2011. Some functionality in NVML is exclusive to professional Quadro or Tesla GPUs, but basic functionality like the queries used here are available across NVIDIA GPU brands. BUG=693090 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel Change-Id: I31b44021e00426fcfb2b850fea5d63c114c4569c Reviewed-on: https://chromium-review.googlesource.com/1108199 Reviewed-by: Will Harris <wfh@chromium.org> Reviewed-by: Nico Weber <thakis@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Reviewed-by: Kenneth Russell <kbr@chromium.org> Reviewed-by: Dominick Ng <dominickn@chromium.org> Commit-Queue: Olli Etuaho <oetuaho@nvidia.com> Cr-Commit-Position: refs/heads/master@{#581820}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .