Merge commit '8c570c9496' into concedo_experimental

# Conflicts:
#	README.md
#	tests/test-backend-ops.cpp
This commit is contained in:
Concedo 2024-05-10 16:55:26 +08:00
commit db82bad6f2
18 changed files with 45581 additions and 35766 deletions

View file

@ -2128,6 +2128,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;