]> git.djapps.eu Git - pkg/ggml/sources/ggml/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>
Sat, 11 May 2024 18:30:08 +0000 (21:30 +0300)
commit9b5e9be833921e20895645424274a213f533f43b
tree338bd95d5e2069bef78b404ddd54d02a18d4dce7
parente12eff0b20cd45627e061d5793dba0613086a1fe
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>
src/ggml-opencl.cpp