Main Results
We present the evaluations on compilation/computation accuracy, where we compare QiMeng-Xpiler with state-of-the-art methods in different transcompilation directions. We conclude that(1) QiMeng-Xpiler performs the best in all directions with close to 100% accuracy for compilation and 86.9% to 100% accuracy for computation. This clearly indicates that QiMeng-Xpiler is capable of handling source-to-source code translation tasks on vlarious DLS with minimal human efforts, bringing revolutionary advancements to the DLS programming domain.
(2) QiMeng-Xpiler performs better than the SOTA LLM-based methods. Although the LLM-based methods have achieved high accuracy in certain cases, it is challenging for them to reach 100% accuracy due to the uncertainty of LLMs. This means that LLM-based methods cannot be applied to transcompilers which have an extremely high demand for accuracy. In contrast, our approach can achieve 100% accuracy in most situations, demonstrating its practical applicability as a transcompiler.
(3) QiMeng-Xpiler performs better than the SOTA rule-based methods. For C → CUDA C, QiMeng-Xpiler achieves 100% compilation and 98.2% computation accuracy, which is ∼50% higher than PPCG. For the easier CUDA C → HIP task, QiMeng-Xpiler successfully converts and executes with 100% accuracy, outperforming HIPIFY, which achieves 85.7%. Also, this result shows that QiMeng-Xpiler’s flexibility across various DLS without much adaptation cost while rule-based methods cannot.
