resolve-march-native


Nameresolve-march-native JSON
Version 6.0.1 PyPI version JSON
download
home_pagehttps://github.com/hartwork/resolve-march-native
SummaryTool to determine what GCC flags -march=native would resolve into
upload_time2025-01-05 00:01:36
maintainerNone
docs_urlNone
authorSebastian Pipping
requires_python>=3.9
licenseGPLv2+
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
[![Run the test suite](https://github.com/hartwork/resolve-march-native/actions/workflows/run-tests.yml/badge.svg)](https://github.com/hartwork/resolve-march-native/actions/workflows/run-tests.yml)


# About

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


# Example

```console
$ resolve-march-native --vertical
-march=sandybridge
-maes
--param=l1-cache-line-size=64
--param=l1-cache-size=32
--param=l2-cache-size=3072
```

```console
$ 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

```console
$ COLUMNS=80 resolve-march-native --help
usage: resolve-march-native [-h] [--debug] [--clang [COMMAND] | --gcc
                            [COMMAND]] [--vertical] [--keep-minus-features]
                            [--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:
  --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!
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hartwork/resolve-march-native",
    "name": "resolve-march-native",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Sebastian Pipping",
    "author_email": "sebastian@pipping.org",
    "download_url": "https://files.pythonhosted.org/packages/77/71/209c7066622c20ef5b0dce635ce86eb112738fb750cbe08831e99478658c/resolve_march_native-6.0.1.tar.gz",
    "platform": null,
    "description": "[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)\n[![Run the test suite](https://github.com/hartwork/resolve-march-native/actions/workflows/run-tests.yml/badge.svg)](https://github.com/hartwork/resolve-march-native/actions/workflows/run-tests.yml)\n\n\n# About\n\n**resolve-march-native** is a small command line tool to resolve\n`-march=native` into explicit GCC or (experimental!) Clang flags.\n\n\n# Example\n\n```console\n$ resolve-march-native --vertical\n-march=sandybridge\n-maes\n--param=l1-cache-line-size=64\n--param=l1-cache-size=32\n--param=l2-cache-size=3072\n```\n\n```console\n$ resolve-march-native --clang --vertical\n-march=sandybridge\n-Xclang -target-feature -Xclang +64bit\n-Xclang -target-feature -Xclang +aes\n-Xclang -target-feature -Xclang +avx\n-Xclang -target-feature -Xclang +cmov\n-Xclang -target-feature -Xclang +crc32\n-Xclang -target-feature -Xclang +cx16\n-Xclang -target-feature -Xclang +cx8\n-Xclang -target-feature -Xclang +fxsr\n-Xclang -target-feature -Xclang +mmx\n-Xclang -target-feature -Xclang +pclmul\n-Xclang -target-feature -Xclang +popcnt\n-Xclang -target-feature -Xclang +sahf\n-Xclang -target-feature -Xclang +sse\n-Xclang -target-feature -Xclang +sse2\n-Xclang -target-feature -Xclang +sse3\n-Xclang -target-feature -Xclang +sse4.1\n-Xclang -target-feature -Xclang +sse4.2\n-Xclang -target-feature -Xclang +ssse3\n-Xclang -target-feature -Xclang +xsave\n-Xclang -target-feature -Xclang +xsaveopt\n```\n\n# Usage\n\n```console\n$ COLUMNS=80 resolve-march-native --help\nusage: resolve-march-native [-h] [--debug] [--clang [COMMAND] | --gcc\n                            [COMMAND]] [--vertical] [--keep-minus-features]\n                            [--keep-identical-mtune] [--keep-mno-flags]\n                            [--add-recommended] [--version]\n\noptions:\n  -h, --help            show this help message and exit\n  --debug               enable debugging (default: disabled)\n  --clang [COMMAND]     [EXPERIMENTAL] target Clang (default: target GCC) and\n                        use given command if any (default: clang)\n  --gcc [COMMAND]       target GCC explicitly and use given command if any\n                        (default: gcc))\n  --vertical            produce vertical output (default: horizontal output)\n  --add-recommended, -a\n                        add recommended flags (default: not added)\n  --version             show program's version number and exit\n\nClang-related arguments:\n  --keep-minus-features\n                        keep \"-target-feature -*\" style parameters (default:\n                        stripped away)\n\nGCC-related arguments:\n  --keep-identical-mtune\n                        keep implied -mtune=... despite architecture identical\n                        to -march=... (default: stripped away)\n  --keep-mno-flags      keep -mno-* parameters (default: (superfluous ones)\n                        stripped away)\n\nSoftware libre licensed under GPL v2 or later.\nBrought to you by Sebastian Pipping <sebastian@pipping.org>.\n\nPlease report bugs at https://github.com/hartwork/resolve-march-native/issues \u2014 thank you!\n```\n",
    "bugtrack_url": null,
    "license": "GPLv2+",
    "summary": "Tool to determine what GCC flags -march=native would resolve into",
    "version": "6.0.1",
    "project_urls": {
        "Homepage": "https://github.com/hartwork/resolve-march-native"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bc1b3e0f6b90d589f18769cde150aa72524cdd2f354714b5d2790f710d5f1752",
                "md5": "c567774f941be25dd059f4e0c6b7b5dc",
                "sha256": "6174ce9b08eeecac63a919f0960ea044cb1d3926032e7ac0c7b752e253ddac65"
            },
            "downloads": -1,
            "filename": "resolve_march_native-6.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c567774f941be25dd059f4e0c6b7b5dc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 13494,
            "upload_time": "2025-01-05T00:01:33",
            "upload_time_iso_8601": "2025-01-05T00:01:33.723289Z",
            "url": "https://files.pythonhosted.org/packages/bc/1b/3e0f6b90d589f18769cde150aa72524cdd2f354714b5d2790f710d5f1752/resolve_march_native-6.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7771209c7066622c20ef5b0dce635ce86eb112738fb750cbe08831e99478658c",
                "md5": "fc958007d2eff303cde58a9a7a338037",
                "sha256": "8bf86da0c98eadb000f441bbfdeb013fec423b8450daceb9fb4ce3082c184de1"
            },
            "downloads": -1,
            "filename": "resolve_march_native-6.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "fc958007d2eff303cde58a9a7a338037",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 63178,
            "upload_time": "2025-01-05T00:01:36",
            "upload_time_iso_8601": "2025-01-05T00:01:36.125466Z",
            "url": "https://files.pythonhosted.org/packages/77/71/209c7066622c20ef5b0dce635ce86eb112738fb750cbe08831e99478658c/resolve_march_native-6.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-05 00:01:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hartwork",
    "github_project": "resolve-march-native",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "resolve-march-native"
}
        
Elapsed time: 0.36734s