mirror of https://github.com/open-mmlab/mmcv.git
[Enhance] Add a default value for MMCV_MLU_ARGS (#2688)
* add mlu_args * add mlu_args * Modify the code --------- Co-authored-by: budefei <budefei@cambricon.com>pull/2700/head
parent
4c4ba6cb17
commit
66c5515174
2
setup.py
2
setup.py
|
@ -369,7 +369,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