We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3b7a03 commit 7a514ecCopy full SHA for 7a514ec
1 file changed
op_builder/async_io.py
@@ -30,7 +30,7 @@ def include_paths(self):
30
return ['csrc/aio/py_lib', 'csrc/aio/common']
31
32
def cxx_args(self):
33
- return [
+ args = [
34
'-g',
35
'-Wall',
36
'-O0',
@@ -41,8 +41,11 @@ def cxx_args(self):
41
'-march=native',
42
'-fopenmp',
43
'-laio',
44
- self.simd_width()
45
]
+ sw = self.simd_width()
46
+ if sw:
47
+ args += [sw]
48
+ return args
49
50
def extra_ldflags(self):
51
return ['-laio']
0 commit comments