File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ Documentation = "https://nvidia.github.io/cuda-python/"
5656[tool .setuptools .packages .find ]
5757include = [" cuda*" ]
5858
59+ [tool .setuptools .exclude-package-data ]
60+ "*" = [" *.cpp" ]
61+
5962[tool .setuptools .dynamic ]
6063readme = { file = [" DESCRIPTION.rst" ], content-type = " text/x-rst" }
6164
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments