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.
2 parents 360ce45 + af3347a commit f730de1Copy full SHA for f730de1
dpctl/_init_helper.py
@@ -32,3 +32,20 @@
32
os.add_dll_directory(dll_dir)
33
34
del is_venv_win32
35
+
36
+is_linux = sys.platform.startswith("linux")
37
38
+if is_linux:
39
+ # forking is not supported by device drivers
40
+ # Configure subprocess (used by versioneer) to
41
+ # use SPAWN method over FORK method to enable
42
+ # use of gdb-oneapi to debug code launched by
43
+ # native extensions that used dpctl C/C++ API
44
+ import subprocess
45
46
+ subprocess._USE_VFORK = False
47
+ subprocess._USE_POSIX_SPAWN = True
48
+ # remove qualifier from this namespace
49
+ del subprocess
50
51
+del is_linux
0 commit comments