mace-cl-compiled-program.bin is a specialized binary file used by the Mobile AI Compute Engine (MACE) framework—an open-source deep learning inference engine developed by Xiaomi for mobile heterogeneous computing.
You can explore the source code for this inference framework at the Xiaomi MACE GitHub repository. For general open-source security practices related to such libraries, tools from the OWASP Foundation can be utilized. Additionally, organizational strategies for digital transformation using open-source tools are discussed in the Presans Whitepaper on Open Organizations. mace-cl-compiled-program.bin
Performance Optimization: This file stores compiled OpenCL kernels specifically tuned for a device's GPU. By caching these kernels, MACE avoids the overhead of recompiling them every time an application starts, which significantly reduces the initialization time of the AI engine. mace-cl-compiled-program
runtime = mace.MaceRuntime( model_name="my_model", device="myriad", compiled_program=prog_bin ) mace : Indicates the file belongs to the
mace : Indicates the file belongs to the Xiaomi MACE framework.cl : Stands for OpenCL (Open Computing Language). This file is specifically related to GPU execution, not CPU or DSP.compiled-program : This is the crucial part. It signifies a binary result of a compilation process..bin : A generic binary extension. This is not a text file; it is machine code for a specific GPU architecture.// Run inference std::map<std::string, mace::MaceTensor> inputs, outputs; // ... fill inputs engine->Run(inputs, &outputs);