diff options
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 03b0f918e2..419fa33558 100644 --- a/SConstruct +++ b/SConstruct @@ -126,7 +126,7 @@ vars.AddVariables( ├── datasets ├── fixtures └── Neon\n""", "", PathVariable.PathAccept), - BoolVariable("experimental_dynamic_fusion", "Build the experimental dynamic fusion files", False), + BoolVariable("experimental_dynamic_fusion", "Build the experimental dynamic fusion files. This option also enables opencl=1 and ckw=1 on which it has a direct dependency.", False), BoolVariable("fixed_format_kernels", "Enable fixed format kernels for GEMM", False), BoolVariable("mapfile", "Generate a map file", False), ListVariable("custom_options", "Custom options that can be used to turn on/off features", "none", ["disable_mmla_fp"]), @@ -215,6 +215,11 @@ if env['os'] == 'bare_metal': print("ERROR: OpenMP and C++11 threads not supported in bare_metal. Use cppthreads=0 openmp=0") Exit(1) +if env['experimental_dynamic_fusion']: + # Dynamic Fusion on GPU has a direct dependency on OpenCL and Compute Kernel Writer + env['opencl'] = 1 + env['ckw'] = 1 + if env['opencl'] and env['embed_kernels'] and env['compress_kernels'] and env['os'] not in ['android']: print("Compressed kernels are supported only for android builds") Exit(1) |