devitocodes / devito

DSL and compiler framework for automated finite-differences and stencil computation
http://www.devitoproject.org
MIT License
536 stars 221 forks source link

Use get_nvidia_cc to get Nvidia gpu architecture #2343

Closed ggorman closed 3 months ago

ggorman commented 3 months ago

Use get_nvidia_cc to get Nvidia gpu architecture rather than using '-arch=native'.

This fixes compilation errors on the Nvidia Jetson.

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 86.66%. Comparing base (39ea32a) to head (6e64c16).

Files Patch % Lines
devito/arch/compiler.py 0.00% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2343 +/- ## ========================================== - Coverage 86.67% 86.66% -0.01% ========================================== Files 232 232 Lines 43442 43445 +3 Branches 8062 8063 +1 ========================================== Hits 37653 37653 - Misses 5084 5087 +3 Partials 705 705 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

mloubout commented 3 months ago

Commit name doesn't follow guidelines, should be

arch: Use get_nvidia_cc to get Nvidia gpu architecture ....