Skip to main content

NOTICE

This is a fork of 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™ 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:

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™ header files. Then, modify file <path_to_rocm>/hiprand/hiprand_hcc.h such that

typedef rocrand_generator_base_type hiprandGenerator_st;

becomes

typedef struct rocrand_generator_base_type hiprandGenerator_st;

ROCm™ 5.5.0 and ROCm™ 5.5.1

On systems with ROCm™ 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

hip_python_fork-6.3.1.524.17.1-cp313-cp313-manylinux_2_34_x86_64.whl (9.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

hip_python_fork-6.3.1.524.17.1-cp312-cp312-manylinux_2_34_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

hip_python_fork-6.3.1.524.17.1-cp311-cp311-manylinux_2_34_x86_64.whl (10.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

hip_python_fork-6.3.1.524.17.1-cp310-cp310-manylinux_2_34_x86_64.whl (44.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

hip_python_fork-6.3.1.524.17.1-cp39-cp39-manylinux_2_34_x86_64.whl (10.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

hip_python_fork-6.3.1.524.17.1-cp38-cp38-manylinux_2_34_x86_64.whl (10.2 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

File details

Details for the file hip_python_fork-6.3.1.524.17.1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for hip_python_fork-6.3.1.524.17.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e95e1132c3ae12a26d7c8f1e668f655e20b474cc17bd256d54ab8c6f9793be76
MD5 c5261b01cb73a23807561af10a8a693b
BLAKE2b-256 f61d63f5125948c35e43492a26d1d5dfff695ba5db750c995d2097992ae1075f

See more details on using hashes here.

File details

Details for the file hip_python_fork-6.3.1.524.17.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for hip_python_fork-6.3.1.524.17.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 efed83b4ac35c51d7a134b62d3dfe127e247e24392607ee90d492d4591417edf
MD5 160599bb3508c54b1c426c7099c4e142
BLAKE2b-256 c364427314d3429293e7ff8893d92bf109a5baddaf1517d5371447506017d0b2

See more details on using hashes here.

File details

Details for the file hip_python_fork-6.3.1.524.17.1-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for hip_python_fork-6.3.1.524.17.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4e57d7011c9f68362f6ebd7efaf2c9be58a028de4ff9dabbc1ccdd84310c2c1d
MD5 ae8bde3add9c159adc9eff3bd130dc9c
BLAKE2b-256 7d22f306ddcc366078524dcfc5b428cb7a1ceb5cc7e363d8559fb04b6e0824a4

See more details on using hashes here.

File details

Details for the file hip_python_fork-6.3.1.524.17.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for hip_python_fork-6.3.1.524.17.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a565da42e70bc8e493e8a11a4955d6807394a5ad927262e4c61a04b335a2c4f1
MD5 24b46cda30fa4cf391bd5f2ea1841fce
BLAKE2b-256 20d559445a67475bd2958178fe7c7dfe237c7e4c2fa5c36805ef287ead973134

See more details on using hashes here.

File details

Details for the file hip_python_fork-6.3.1.524.17.1-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for hip_python_fork-6.3.1.524.17.1-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 de759f591ca06d14846c60ee2d8c299289d1c25e87a4bf4163004c23720e1783
MD5 bb9f3913dd0b9a0a5e2570178f4906b7
BLAKE2b-256 87dd57f55468500c55c01d42d13954c6718cef0293c7034c07a2a7e63f3d97d5

See more details on using hashes here.

File details

Details for the file hip_python_fork-6.3.1.524.17.1-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for hip_python_fork-6.3.1.524.17.1-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 086af823377562eca03ef117c41053fa06c33e38f487b789c68f2983916d3e91
MD5 67289b04b0c9c868b7988b3a0b6336e6
BLAKE2b-256 eb31d3e0b1e7c835ad6f9bc2f75a762220f552f6ee2e681cee29545457bb8d5b

See more details on using hashes here.

Release history Release notifications | RSS feed

6.3.3.540.31

1 file

This release

6.3.1.524.17.1 This release

6 files

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