hip-python-fork


Namehip-python-fork JSON
Version 6.3.1.524.17.1 PyPI version JSON
download
home_pagehttps://github.com/ROCmSoftwarePlatform/hip-python
SummaryPython and Cython bindings for HIP
upload_time2025-01-23 19:53:20
maintainerNone
docs_urlNone
authorAdvanced Micro Devices, Inc.
requires_python<4,>=3.7
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!-- MIT License
  -- 
  -- Copyright (c) 2023-2024 Advanced Micro Devices, Inc.
  -- 
  -- Permission is hereby granted, free of charge, to any person obtaining a copy
  -- of this software and associated documentation files (the "Software"), to deal
  -- in the Software without restriction, including without limitation the rights
  -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  -- copies of the Software, and to permit persons to whom the Software is
  -- furnished to do so, subject to the following conditions:
  -- 
  -- The above copyright notice and this permission notice shall be included in all
  -- copies or substantial portions of the Software.
  -- 
  -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  -- SOFTWARE.
  -->
# **NOTICE**
This is a fork of [`hip-python`](https://test.pypi.org/project/hip-python/). It will be removed when the hip-python team uploads to PyPI.

## HIP Python

This repository provides low-level Python and Cython bindings for HIP.
Currently, only bindings for the AMD GPU backend of HIP are provided.

## Known Issues

### The `hiprand` Cython Module Causes Compiler Error

With all ROCm&trade; versions before and including version 5.6.0, compiling/using HIP Python's `hiprand` 
Cython module results in a compiler error.

The error is caused by the following statement in the C compilation
path of `<path_to_rocm>/hiprand/hiprand_hcc.h`, which is not legal in C
for aliasing a `struct` type:

```c
typedef rocrand_generator_base_type hiprandGenerator_st;
```

#### Workaround (Requires Access to Header File): Edit Header File

For this fix, you need write access to the ROCm&trade; header files.
Then, modify file `<path_to_rocm>/hiprand/hiprand_hcc.h` such that

```c
typedef rocrand_generator_base_type hiprandGenerator_st;
```

becomes 

```c
typedef struct rocrand_generator_base_type hiprandGenerator_st;
```

### ROCm&trade; 5.5.0 and ROCm&trade; 5.5.1

On systems with ROCm&trade; HIP SDK 5.5.0 or 5.5.1, the examples

* hip-python/examples/0_Basic_Usage/hiprtc_launch_kernel_args.py
* hip-python/examples/0_Basic_Usage/hiprtc_launch_kernel_no_args.py

abort with errors.

An upgrade to version HIP SDK 5.6 or later (or a downgrade to version 5.4) is advised if 
the showcased functionality is needed.

### Unspecific

On certain Ubuntu 20 systems, we encountered issues when running the examples:

* hip-python/examples/0_Basic_Usage/hiprtc_launch_kernel_args.py
* hip-python/examples/0_Basic_Usage/rccl_comminitall_bcast.py

We could not identify the cause yet.

## Documentation

For examples, guides and API reference, please take a
look at the official HIP Python documentation pages:

https://rocm.docs.amd.com/projects/hip-python/en/latest/index.html

## LICENSE

```
MIT License

Copyright (c) 2023-2024 Advanced Micro Devices, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ROCmSoftwarePlatform/hip-python",
    "name": "hip-python-fork",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4,>=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": "Advanced Micro Devices, Inc.",
    "author_email": "hip-python.maintainer@amd.com",
    "download_url": "https://files.pythonhosted.org/packages/60/3f/a347d308431f51d094257177cd6df6c0ed14e81cc3bbaffd0d49d4133e7f/hip_python_fork-6.3.1.524.17.1.tar.gz",
    "platform": null,
    "description": "<!-- MIT License\n  -- \n  -- Copyright (c) 2023-2024 Advanced Micro Devices, Inc.\n  -- \n  -- Permission is hereby granted, free of charge, to any person obtaining a copy\n  -- of this software and associated documentation files (the \"Software\"), to deal\n  -- in the Software without restriction, including without limitation the rights\n  -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n  -- copies of the Software, and to permit persons to whom the Software is\n  -- furnished to do so, subject to the following conditions:\n  -- \n  -- The above copyright notice and this permission notice shall be included in all\n  -- copies or substantial portions of the Software.\n  -- \n  -- THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n  -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n  -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n  -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n  -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n  -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n  -- SOFTWARE.\n  -->\n# **NOTICE**\nThis is a fork of [`hip-python`](https://test.pypi.org/project/hip-python/). It will be removed when the hip-python team uploads to PyPI.\n\n## HIP Python\n\nThis repository provides low-level Python and Cython bindings for HIP.\nCurrently, only bindings for the AMD GPU backend of HIP are provided.\n\n## Known Issues\n\n### The `hiprand` Cython Module Causes Compiler Error\n\nWith all ROCm&trade; versions before and including version 5.6.0, compiling/using HIP Python's `hiprand` \nCython module results in a compiler error.\n\nThe error is caused by the following statement in the C compilation\npath of `<path_to_rocm>/hiprand/hiprand_hcc.h`, which is not legal in C\nfor aliasing a `struct` type:\n\n```c\ntypedef rocrand_generator_base_type hiprandGenerator_st;\n```\n\n#### Workaround (Requires Access to Header File): Edit Header File\n\nFor this fix, you need write access to the ROCm&trade; header files.\nThen, modify file `<path_to_rocm>/hiprand/hiprand_hcc.h` such that\n\n```c\ntypedef rocrand_generator_base_type hiprandGenerator_st;\n```\n\nbecomes \n\n```c\ntypedef struct rocrand_generator_base_type hiprandGenerator_st;\n```\n\n### ROCm&trade; 5.5.0 and ROCm&trade; 5.5.1\n\nOn systems with ROCm&trade; HIP SDK 5.5.0 or 5.5.1, the examples\n\n* hip-python/examples/0_Basic_Usage/hiprtc_launch_kernel_args.py\n* hip-python/examples/0_Basic_Usage/hiprtc_launch_kernel_no_args.py\n\nabort with errors.\n\nAn upgrade to version HIP SDK 5.6 or later (or a downgrade to version 5.4) is advised if \nthe showcased functionality is needed.\n\n### Unspecific\n\nOn certain Ubuntu 20 systems, we encountered issues when running the examples:\n\n* hip-python/examples/0_Basic_Usage/hiprtc_launch_kernel_args.py\n* hip-python/examples/0_Basic_Usage/rccl_comminitall_bcast.py\n\nWe could not identify the cause yet.\n\n## Documentation\n\nFor examples, guides and API reference, please take a\nlook at the official HIP Python documentation pages:\n\nhttps://rocm.docs.amd.com/projects/hip-python/en/latest/index.html\n\n## LICENSE\n\n```\nMIT License\n\nCopyright (c) 2023-2024 Advanced Micro Devices, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python and Cython bindings for HIP",
    "version": "6.3.1.524.17.1",
    "project_urls": {
        "Homepage": "https://github.com/ROCmSoftwarePlatform/hip-python"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "20d559445a67475bd2958178fe7c7dfe237c7e4c2fa5c36805ef287ead973134",
                "md5": "24b46cda30fa4cf391bd5f2ea1841fce",
                "sha256": "a565da42e70bc8e493e8a11a4955d6807394a5ad927262e4c61a04b335a2c4f1"
            },
            "downloads": -1,
            "filename": "hip_python_fork-6.3.1.524.17.1-cp310-cp310-manylinux_2_34_x86_64.whl",
            "has_sig": false,
            "md5_digest": "24b46cda30fa4cf391bd5f2ea1841fce",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": "<4,>=3.7",
            "size": 44404178,
            "upload_time": "2025-01-23T19:53:11",
            "upload_time_iso_8601": "2025-01-23T19:53:11.137748Z",
            "url": "https://files.pythonhosted.org/packages/20/d5/59445a67475bd2958178fe7c7dfe237c7e4c2fa5c36805ef287ead973134/hip_python_fork-6.3.1.524.17.1-cp310-cp310-manylinux_2_34_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "603fa347d308431f51d094257177cd6df6c0ed14e81cc3bbaffd0d49d4133e7f",
                "md5": "419292df2c6d3672549aa5b6d77aaaa9",
                "sha256": "40bf2f2e4e5524fa67e6c38780d9b3378ca2ebc83d7f0ec8c7d7072a2818a844"
            },
            "downloads": -1,
            "filename": "hip_python_fork-6.3.1.524.17.1.tar.gz",
            "has_sig": false,
            "md5_digest": "419292df2c6d3672549aa5b6d77aaaa9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.7",
            "size": 59286228,
            "upload_time": "2025-01-23T19:53:20",
            "upload_time_iso_8601": "2025-01-23T19:53:20.246959Z",
            "url": "https://files.pythonhosted.org/packages/60/3f/a347d308431f51d094257177cd6df6c0ed14e81cc3bbaffd0d49d4133e7f/hip_python_fork-6.3.1.524.17.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-23 19:53:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ROCmSoftwarePlatform",
    "github_project": "hip-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "hip-python-fork"
}
        
Elapsed time: 2.90302s