mmcv icon indicating copy to clipboard operation
mmcv copied to clipboard

Fix MMCV_CUDA_ARGS so it supports multiple arch

Open larroy opened this issue 1 year ago • 4 comments

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

Currently is not possible to support multiple cuda arches because a space separated string of gencode arguments get passed as a single nvcc argument which triggers a compile error (should be separate arguments).

Modification

Split the MMCV_CUDA_ARGS variable to correctly pass it to the compiler.

BC-breaking (Optional)

Does the modification introduce changes that break the backward-compatibility of the downstream repositories? If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.

Checklist

Before PR:

  • [ ] I have read and followed the workflow indicated in the CONTRIBUTING.md to create this PR.
  • [ ] Pre-commit or linting tools indicated in CONTRIBUTING.md are used to fix the potential lint issues.
  • [ ] Bug fixes are covered by unit tests, the case that causes the bug should be added in the unit tests.
  • [ ] New functionalities are covered by complete unit tests. If not, please add more unit test to ensure the correctness.
  • [ ] The documentation has been modified accordingly, including docstring or example tutorials.

After PR:

  • [ ] If the modification has potential influence on downstream or other related projects, this PR should be tested with some of those projects, like MMDet or MMCls.
  • [ ] CLA has been signed and all committers have signed the CLA in this PR.

larroy avatar May 07 '24 23:05 larroy

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar May 07 '24 23:05 CLAassistant

@HAOCHENYE can you help assign someone to review this?

samskalicky avatar Dec 30 '24 18:12 samskalicky

Signed CLA

larroy avatar Dec 30 '24 18:12 larroy

@OlaWod Can you help move this PR forward or help ping the right people?

samskalicky avatar Jan 10 '25 06:01 samskalicky