]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
opencl : alignment size converted from bits to bytes (#7090)
authorAlbert Jin <redacted>
Thu, 9 May 2024 09:34:37 +0000 (17:34 +0800)
committerGitHub <redacted>
Thu, 9 May 2024 09:34:37 +0000 (12:34 +0300)
commit47345248827f426038098d016ed11975021b4919
treeaf067c8394d96b6fb1b4ff4dbb2ff639fefb1a10
parent07cd41d0965829463eff73eda3348aedbfd3a444
opencl : alignment size converted from bits to bytes (#7090)

* opencl alignment size should be converted from bits to bytes

Reference: https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_API.html#CL_DEVICE_MEM_BASE_ADDR_ALIGN

> Alignment requirement (in bits) for sub-buffer offsets.

* Update ggml-opencl.cpp for readability using division instead of shift

Co-authored-by: Jared Van Bortel <redacted>
---------

Co-authored-by: Jared Van Bortel <redacted>
ggml-opencl.cpp