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

Software libre licensed under GPL v2 or later.
Brought to you by Sebastian Pipping <sebastian@pipping.org>.

Please report bugs at https://github.com/hartwork/resolve-march-native/issues — thank you!

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-5.1.0.tar.gz (52.5 kB view details)

Uploaded Source

Built Distribution

resolve_march_native-5.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file resolve_march_native-5.1.0.tar.gz.

File metadata

  • Download URL: resolve_march_native-5.1.0.tar.gz
  • Upload date:
  • Size: 52.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for resolve_march_native-5.1.0.tar.gz
Algorithm Hash digest
SHA256 0478fc8b5ee4cf4760faec2fce051f28e00ef408dc4617ccb5cd4d7f149b2e06
MD5 3a27d11d6b751bc986be1b9c6e091dae
BLAKE2b-256 fcbe731434726f5c682741c2d486e3d34e6747f20ed333cfcfb5788064b73ecf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for resolve_march_native-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 203c1a436f88eb833bca9b2c2076b5e976a77ede3280b88132ad09b392eacf96
MD5 44a24f3f46050cb39e1580a6ffa9d051
BLAKE2b-256 ac219fabf16297e8e14a9a6e7c696fa208336d1776b7ab729f16afa11d966f10

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