File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7878 CIBW_BUILD_VERBOSITY : 1
7979 CIBW_BEFORE_BUILD_WINDOWS : " pip install delvewheel"
8080 CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : " delvewheel repair --namespace-pkg cuda -w {dest_dir} {wheel}"
81+ CIBW_ENVIRONMENT : >
82+ CUDA_PYTHON_PARALLEL_LEVEL=${{ env.CUDA_PYTHON_PARALLEL_LEVEL }}
8183 with :
8284 package-dir : ./cuda_core/
8385 output-dir : ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
Original file line number Diff line number Diff line change 99from setuptools import Extension , setup
1010from setuptools .command .build_ext import build_ext as _build_ext
1111
12+
13+ nthreads = int (os .environ .get ("CUDA_PYTHON_PARALLEL_LEVEL" , os .cpu_count () // 2 ))
14+
15+
1216# It seems setuptools' wildcard support has problems for namespace packages,
1317# so we explicitly spell out all Extension instances.
1418root_module = "cuda.core.experimental"
@@ -33,7 +37,7 @@ def strip_prefix_suffix(filename):
3337
3438class build_ext (_build_ext ):
3539 def build_extensions (self ):
36- self .parallel = os . cpu_count () // 2
40+ self .parallel = nthreads
3741 super ().build_extensions ()
3842
3943
You can’t perform that action at this time.
0 commit comments