Skip to main content

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

Project description

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

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

optional arguments:
  -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)
  --keep-default-params
                        keep --param ... with values matching defaults
                        (default: 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-1.0.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

resolve_march_native-1.0.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: resolve-march-native-1.0.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.8

File hashes

Hashes for resolve-march-native-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ad58abbd53235bec434218c9402be12aa2f7babbb0b6f901bf7baa1cf4bca751
MD5 f9189a61e3c3dc37a7f6c618b7bc375d
BLAKE2b-256 44ddf5c57d524d77b71b202de953d1a9387c65747d0244e0844eb13da81a14ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resolve_march_native-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.8

File hashes

Hashes for resolve_march_native-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df5c9ce4f21eac4949e13e658f4b6a2227612369d91bb98eeb99b707ab49240f
MD5 96d4257a9b0ca79c147116f9018a2ebc
BLAKE2b-256 a449c8c903d3a659272faefa110fa30425d43119bae1c45fcd1f84daa2574cda

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