Patch to set PARAMETERS_MIN_ALIGNMENT to the native alignment for rocm-opencl (#43444)

* For avx build, the start address of values_ buffer in KernelParameters
   is not a correct as it is computed based on 16-byte alignment.
* Style check error fix
This commit is contained in:
renjithravindrankannath 2024-04-05 12:02:32 -07:00 committed by GitHub
parent c68d739825
commit 2121eb31ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,6 +82,19 @@ def url_for_version(self, version):
placement="rocclr",
when=f"@{d_version}",
)
# For avx build, the start address of values_ buffer in KernelParameters is not
# correct as it is computed based on 16-byte alignment.
patch(
"https://github.com/ROCm/clr/commit/c4f773db0b4ccbbeed4e3d6c0f6bff299c2aa3f0.patch?full_index=1",
sha256="5bb9b0e08888830ccf3a0a658529fe25f4ee62b5b8890f349bf2cc914236eb2f",
when="@5.7:",
)
patch(
"https://github.com/ROCm/clr/commit/7868876db742fb4d44483892856a66d2993add03.patch?full_index=1",
sha256="7668b2a710baf4cb063e6b00280fb75c4c3e0511575e8298a9c7ae5143f60b33",
when="@5.7:",
)
# Patch to set package installation path for OpenCL.
patch("0001-fix-build-error-rocm-opencl-5.1.0.patch", when="@5.1")