mirror of https://github.com/open-mmlab/mmcv.git
[Enhance] Add a default value for MMCV_MLU_ARGS (#2686)
* add mlu_args * Update setup.py Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> --------- Co-authored-by: budefei <budefei@cambricon.com> Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>pull/3157/head
parent
240767bbb6
commit
055a056c21
2
setup.py
2
setup.py
|
@ -368,7 +368,7 @@ def get_extensions():
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
define_macros += [('MMCV_WITH_MLU', None)]
|
define_macros += [('MMCV_WITH_MLU', None)]
|
||||||
mlu_args = os.getenv('MMCV_MLU_ARGS')
|
mlu_args = os.getenv('MMCV_MLU_ARGS', '-DNDEBUG ')
|
||||||
mluops_includes = []
|
mluops_includes = []
|
||||||
mluops_includes.append('-I' +
|
mluops_includes.append('-I' +
|
||||||
os.path.abspath('./mlu-ops/bangc-ops'))
|
os.path.abspath('./mlu-ops/bangc-ops'))
|
||||||
|
|
Loading…
Reference in New Issue