Skip to content

Commit 5c0eb5e

Browse files
authored
opencl: fix adreno compiler detection logic (#15029)
1 parent 03d4698 commit 5c0eb5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-opencl/ggml-opencl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2046,8 +2046,8 @@ static ggml_backend_opencl_context * ggml_cl2_init(ggml_backend_dev_t dev) {
20462046

20472047
backend_ctx->adreno_cl_compiler_version = get_adreno_cl_compiler_version(driver_version);
20482048
backend_ctx->has_vector_subgroup_broadcast =
2049-
backend_ctx->adreno_cl_compiler_version.major >= 47 ||
2050-
backend_ctx->adreno_cl_compiler_version.major == 17;
2049+
(backend_ctx->adreno_cl_compiler_version.type == E031 && backend_ctx->adreno_cl_compiler_version.major >= 47) ||
2050+
(backend_ctx->adreno_cl_compiler_version.type == DX && backend_ctx->adreno_cl_compiler_version.major >= 17);
20512051
GGML_LOG_INFO("ggml_opencl: vector subgroup broadcast support: %s\n",
20522052
backend_ctx->has_vector_subgroup_broadcast ? "true" : "false");
20532053

0 commit comments

Comments
 (0)