]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
opencl : alignment size converted from bits to bytes (llama/7090)
authorAlbert Jin <redacted>
Thu, 9 May 2024 09:34:37 +0000 (17:34 +0800)
committerGeorgi Gerganov <redacted>
Mon, 13 May 2024 08:02:26 +0000 (11:02 +0300)
commit26c550f77287158d14f3e8b15486cec86ee8a42d
tree45ee16c3117825152200a3f3836afc51bccb6fe0
parent24f0aa460b1c04becdfdd673b913cce6a4d057b1
opencl : alignment size converted from bits to bytes (llama/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