mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-11-26 23:29:34 +00:00
opencl: Adreno E17 compiler quirks off by default (#33013)
This commit is contained in:
parent
eb56575095
commit
d9dae03443
2 changed files with 8 additions and 3 deletions
|
|
@ -318,6 +318,7 @@ ninja
|
|||
|
||||
## Known Issues
|
||||
|
||||
- Adreno E17 compiler workarounds are disabled by default. If you encounter Flash Attention compilation failures or incorrect MoE results, set `GGML_OPENCL_ADRENO_E17_QUIRKS=1` before starting llama.cpp.
|
||||
- Flash attention does not always improve performance.
|
||||
- Currently OpenCL backend works on A6xx GPUs with recent drivers and compilers (usually found in IoT platforms).
|
||||
However, it does not work on A6xx GPUs found in phones with old drivers and compilers.
|
||||
|
|
|
|||
|
|
@ -11958,8 +11958,12 @@ static bool adreno_e17_compiler_quirks(const ggml_backend_opencl_context *backen
|
|||
backend_ctx->adreno_cl_compiler_version.type != ADRENO_CL_COMPILER_TYPE::E17) {
|
||||
return false;
|
||||
}
|
||||
const char * env = getenv("GGML_OPENCL_ADRENO_E17_QUIRKS");
|
||||
return !(env && env[0] == '0');
|
||||
|
||||
static const bool enabled = []() {
|
||||
const char * e = getenv("GGML_OPENCL_ADRENO_E17_QUIRKS");
|
||||
return e && e[0] && e[0] != '0';
|
||||
}();
|
||||
return enabled;
|
||||
}
|
||||
|
||||
static bool ggml_cl_q2_k_use_noshuffle(const ggml_backend_opencl_context * backend_ctx, const ggml_tensor * tensor) {
|
||||
|
|
@ -12989,7 +12993,7 @@ static bool ggml_opencl_supports_op(ggml_backend_dev_t dev, const struct ggml_te
|
|||
return true;
|
||||
}
|
||||
#endif
|
||||
// The E17 compilers segfault while building FA kernels, skip E17 for now
|
||||
// Some E17 compilers crash while building FA kernels.
|
||||
if (adreno_e17_compiler_quirks(backend_ctx)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue