Skip to main content

Tool to determine what GCC flags -march=native would resolve into

Project description

pre-commit Run the test suite

About

resolve-march-native is a small command line tool to resolve -march=native into explicit GCC flags.

Example

$ resolve-march-native --vertical
-march=bonnell
-mno-cx16
--param l1-cache-line-size=64
--param l1-cache-size=24

Usage

$ COLUMNS=80 resolve-march-native --help
usage: resolve-march-native [-h] [--debug] [--gcc COMMAND] [--vertical]
                            [--keep-identical-mtune] [--keep-mno-flags]
                            [--add-recommended] [--version]

options:
  -h, --help            show this help message and exit
  --debug               enable debugging (default: disabled)
  --gcc COMMAND         gcc command (default: gcc)
  --vertical            produce vertical output (default: horizontal output)
  --keep-identical-mtune
                        keep implied -mtune=... despite architecture identical
                        to -march=... (default: stripped away)
  --keep-mno-flags      keep -mno-* parameters (default: (superfluous ones)
                        stripped away)
  --add-recommended, -a
                        add recommended flags (default: not added)
  --version             show program's version number and exit

resolve-march-native is software libre licensed under GPL v2 or later,
written by Sebastian Pipping.  Please report bugs to
https://github.com/hartwork/resolve-march-native/issues.  Thanks!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

resolve-march-native-2.2.0.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

resolve_march_native-2.2.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file resolve-march-native-2.2.0.tar.gz.

File metadata

  • Download URL: resolve-march-native-2.2.0.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for resolve-march-native-2.2.0.tar.gz
Algorithm Hash digest
SHA256 962fa58883ebf55f1c2c3076bf7d47c9939469ca6dc33a6d7a708de4bfb883a8
MD5 43f9c9c1c1ac2b8c60f5874c7895db9a
BLAKE2b-256 21908fd58dbaaf3ba062485f6116172d45d340b630678daaf9e99e6e4b02b43f

See more details on using hashes here.

File details

Details for the file resolve_march_native-2.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for resolve_march_native-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 225b08331efb2150d3c0e2d8f3b8d8db53ee247887a434dcd6aec611e1420a45
MD5 687413387c7f0b6db48b9539cfaa84a5
BLAKE2b-256 f73200cc05c3ac9b447cc9630f453c0c254dfd4ca32b21aa2a97118c97babf0d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page