Skip to content

Commit 2c19b49

Browse files
authored
Merge branch 'main' into unsupported-nvml-hardware
2 parents eaa2e62 + fd57180 commit 2c19b49

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

ci/tools/install_gpu_driver.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

@@ -72,8 +72,13 @@ function Install-Driver {
7272
Write-Output "Unknown driver mode: $driver_mode"
7373
exit 1
7474
}
75-
pnputil /disable-device /class Display
76-
pnputil /enable-device /class Display
75+
# Only restart NVIDIA display adapters, not other display devices (e.g. QEMU VGA)
76+
$nvidia_devices = Get-PnpDevice -Class Display -FriendlyName "NVIDIA*"
77+
foreach ($device in $nvidia_devices) {
78+
Write-Output "Restarting device: $($device.FriendlyName) ($($device.InstanceId))"
79+
pnputil /disable-device "$($device.InstanceId)"
80+
pnputil /enable-device "$($device.InstanceId)"
81+
}
7782
# Give it a minute to settle:
7883
Start-Sleep -Seconds 5
7984
}

cuda_bindings/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ Documentation = "https://nvidia.github.io/cuda-python/"
5656
[tool.setuptools.packages.find]
5757
include = ["cuda*"]
5858

59+
[tool.setuptools.exclude-package-data]
60+
"*" = ["*.cpp"]
61+
5962
[tool.setuptools.dynamic]
6063
readme = { file = ["DESCRIPTION.rst"], content-type = "text/x-rst" }
6164

cuda_bindings/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ def do_cythonize(extensions):
356356
return cythonize(
357357
extensions,
358358
nthreads=nthreads,
359+
build_dir="build/cython",
359360
compiler_directives=compiler_directives,
360361
**extra_cythonize_kwargs,
361362
)

cuda_core/build_hooks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ def get_sources(mod_name):
163163
ext_modules,
164164
verbose=True,
165165
language_level=3,
166+
build_dir="build/cython",
166167
nthreads=nthreads,
167168
compiler_directives=compiler_directives,
168169
compile_time_env=compile_time_env,

0 commit comments

Comments
 (0)