Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake 3.20+ CUDA: Policy & Include #2074

Merged
merged 1 commit into from
Jun 2, 2021

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Jun 2, 2021

Summary

Do not include the deprecated CUDA setup with CMake 3.20+ and support new policy for CUDA_ARCHITECTURES.

Also fix errors of the kind:

ERROR: set_target_properties called with incorrect number of arguments.
Value in AMREX_CUDA_ARCHS is 53;60;61;70;75;80;86;86

by quoting the semicolon-separated list.

Additional background

Those are regressions to #2012 that appear with our modernized logic in CMake 3.20+ with CUDA.

I saw those regressions with HiPACE++.

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • are described in the proposed changes to the AMReX documentation, if appropriate

Do not include the deprecated CUDA setup with CMake 3.20+
and support new policy for CUDA_ARCHITECTURES.

Also fix errors of the kind:
```
ERROR: set_target_properties called with incorrect number of arguments.
Value in AMREX_CUDA_ARCHS is 53;60;61;70;75;80;86;86
```
by quoting the semicolon-separated list.
@WeiqunZhang WeiqunZhang merged commit c099e34 into AMReX-Codes:development Jun 2, 2021
@ax3l ax3l deleted the fix-cmake20-cuda branch June 2, 2021 18:10
@ax3l ax3l mentioned this pull request Jun 2, 2021
5 tasks
ax3l added a commit to ax3l/WarpX that referenced this pull request Jun 2, 2021
Update AMReX to c099e342334c01c8fa2055b2e1e806c62bdf3035

This includes the regression fix for CMake 3.20+ with CUDA:
  AMReX-Codes/amrex#2074
WeiqunZhang pushed a commit to AMReX-Codes/amrex-tutorials that referenced this pull request Sep 6, 2021
Only needed for older CMake versions.

Refs.:
- AMReX-Codes/amrex#2012 (feature added to AMReX 21.06+)
- AMReX-Codes/amrex#2074 (regression currently in review, needs to be merged; update: merged)
- Hi-PACE/hipace#522 (same logic for HiPACE++)
- AMReX-Codes/amrex#2076 (just a regression on the way)
- AMReX-Codes/amrex#2077 filter out unsupported SMs, e.g. if we fall back to heuristics
- ECP-WarpX/WarpX#1998
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants