We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a41a4b7 commit 64c3a8eCopy full SHA for 64c3a8e
cuda_core/setup.py
@@ -2,8 +2,11 @@
2
#
3
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
4
5
+import os
6
+
7
from Cython.Build import cythonize
8
from setuptools import setup, Extension, find_packages
9
+from setuptools.command.build_ext import build_ext as _build_ext
10
11
12
ext_modules = (
@@ -25,6 +28,13 @@
25
28
)
26
29
27
30
31
+class build_ext(_build_ext):
32
33
+ def build_extensions(self):
34
+ self.parallel = os.cpu_count() // 2
35
+ super().build_extensions()
36
37
38
setup(
39
ext_modules=cythonize(ext_modules,
40
verbose=True, language_level=3,
@@ -34,5 +44,6 @@
44
find_packages(include=["cuda.core.*"]),
45
["*.pxd", "*.pyx", "*.py"],
46
),
47
+ cmdclass = {'build_ext': build_ext,},
48
zip_safe=False,
49
0 commit comments