summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ggml-opencl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ggml-opencl.cpp b/ggml-opencl.cpp
index b3f8b7ea..880a1495 100644
--- a/ggml-opencl.cpp
+++ b/ggml-opencl.cpp
@@ -2119,6 +2119,7 @@ static size_t ggml_backend_opencl_buffer_type_get_alignment(ggml_backend_buffer_
if (alignment == (cl_uint)-1) {
ggml_cl_init();
clGetDeviceInfo(device, CL_DEVICE_MEM_BASE_ADDR_ALIGN, sizeof(cl_uint), &alignment, NULL);
+ alignment /= 8; // bits to bytes
}
return alignment;