File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
cuda_core/tests/example_tests Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 1515
1616from cuda .core import Device , system
1717
18- # Each example in cuda_core/examples is tested in two ways:
19- #
20- # 1) Directly running the example in the same environment as the test suite.
21- # This gives access to the current development version of cuda_core.
22- # 2) Running the example in a subprocess with "uv run" to verify that the PEP
23- # 723 metadata works correctly and that the example can be run in isolation from
24- # the test suite.
25-
2618
2719def has_compute_capability_9_or_higher () -> bool :
2820 return Device ().compute_capability >= (9 , 0 )
@@ -46,14 +38,6 @@ def is_x86_64() -> bool:
4638 return platform .machine () == "x86_64"
4739
4840
49- def uv_installed () -> bool :
50- try :
51- subprocess .run (["uv" , "--version" ], check = True ) # noqa: S607
52- except (subprocess .CalledProcessError , FileNotFoundError ):
53- return False
54- return True
55-
56-
5741def has_cuda_path () -> bool :
5842 return os .environ .get ("CUDA_PATH" , os .environ .get ("CUDA_HOME" )) is not None
5943
You can’t perform that action at this time.
0 commit comments