Skip to content

Commit

Permalink
1.x branch fix hccl compile
Browse files Browse the repository at this point in the history
  • Loading branch information
hust17yixuan committed Feb 5, 2025
1 parent 5e2b9a7 commit ce4e654
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@ def get_mluops_version(file_path):
'torch_npu').submodule_search_locations[0] +
'/include/third_party/acl/inc'
]
extra_compile_args['cxx'] += [
'-I' + importlib.util.find_spec(
'torch_npu').submodule_search_locations[0] +
'/include/third_party/hccl/inc'
]
define_macros += [('MMCV_WITH_NPU', None)]
extension = NpuExtension
if parse_version(torch.__version__) < parse_version('2.1.0'):
Expand Down

0 comments on commit ce4e654

Please sign in to comment.