Skip to main content

pre-commit Run the test suite Packaging status

About

resolve-march-native is a small command line tool to resolve -march=native into explicit GCC or (experimental!) Clang flags.

Example

$ resolve-march-native --vertical
-march=sandybridge
-maes
--param=l1-cache-line-size=64
--param=l1-cache-size=32
--param=l2-cache-size=3072
$ resolve-march-native --clang --vertical
-march=sandybridge
-Xclang -target-feature -Xclang +64bit
-Xclang -target-feature -Xclang +aes
-Xclang -target-feature -Xclang +avx
-Xclang -target-feature -Xclang +cmov
-Xclang -target-feature -Xclang +crc32
-Xclang -target-feature -Xclang +cx16
-Xclang -target-feature -Xclang +cx8
-Xclang -target-feature -Xclang +fxsr
-Xclang -target-feature -Xclang +mmx
-Xclang -target-feature -Xclang +pclmul
-Xclang -target-feature -Xclang +popcnt
-Xclang -target-feature -Xclang +sahf
-Xclang -target-feature -Xclang +sse
-Xclang -target-feature -Xclang +sse2
-Xclang -target-feature -Xclang +sse3
-Xclang -target-feature -Xclang +sse4.1
-Xclang -target-feature -Xclang +sse4.2
-Xclang -target-feature -Xclang +ssse3
-Xclang -target-feature -Xclang +xsave
-Xclang -target-feature -Xclang +xsaveopt

Usage

$ COLUMNS=80 resolve-march-native --help
usage: resolve-march-native [-h] [--debug] [--clang [COMMAND] |
                            --gcc [COMMAND]] [--vertical]
                            [--keep-minus-features] [--drop-cache-sizes]
                            [--keep-identical-mtune] [--keep-mno-flags]
                            [--add-recommended] [--version]

options:
  -h, --help            show this help message and exit
  --debug               enable debugging (default: disabled)
  --clang [COMMAND]     [EXPERIMENTAL] target Clang (default: target GCC) and
                        use given command if any (default: clang)
  --gcc [COMMAND]       target GCC explicitly and use given command if any
                        (default: gcc)
  --vertical            produce vertical output (default: horizontal output)
  --add-recommended, -a
                        add recommended flags (default: not added)
  --version             show program's version number and exit

Clang-related arguments:
  --keep-minus-features
                        keep "-target-feature -*" style parameters (default:
                        stripped away)

GCC-related arguments:
  --drop-cache-sizes    drop known cache size parameters like
                        --param=l1-cache-line-size=64 (default: keep cache
                        size parameters)
  --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)

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!

Metadata

Release files for resolve-march-native 6.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for resolve-march-native 6.1.0
File Size Uploaded
resolve_march_native-6.1.0.tar.gz 66.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for resolve-march-native 6.1.0
File Interpreter ABI Platform
resolve_march_native-6.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 80.2 kB

Release files / resolve_march_native-6.1.0.tar.gz

Download URL resolve_march_native-6.1.0.tar.gz
Size 66.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ff24cfa1a18d6ba4a21f3e2c9f3ed8dee11df9dec8d7f533b863fa95f7545eeb
BLAKE2b-256 checksum
How to use checksums
d164e74262e83c6ed3199622eec2659a2ab977d5e87d6999fcc88122771adf25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / resolve_march_native-6.1.0-py3-none-any.whl

Download URL resolve_march_native-6.1.0-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8dc7e1fa530ad4259df8fc1a9a564859e9605ce4c8f6ef3c1fc5fff199e2768
BLAKE2b-256 checksum
How to use checksums
5c1c60292de63964b572cbf246ce1a4475adbaf0a05a19804b3a23a5b7f6169d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

6.1.0 This release

2 release files

6.0.1

2 release files

5.1.0

2 release files

5.0.2

2 release files

5.0.1

2 release files

5.0.0

2 release files

4.1.0

2 release files

4.0.0

2 release files

3.0.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.0.0

2 release files

0.9.4

3 release files

0.9.3

3 release files

0.9.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page