English

A Case Study: Exploiting Neural Machine Translation to Translate CUDA to OpenCL

Machine Learning 2019-05-21 v1 Programming Languages Machine Learning

Abstract

The sequence-to-sequence (seq2seq) model for neural machine translation has significantly improved the accuracy of language translation. There have been new efforts to use this seq2seq model for program language translation or program comparisons. In this work, we present the detailed steps of using a seq2seq model to translate CUDA programs to OpenCL programs, which both have very similar programming styles. Our work shows (i) a training input set generation method, (ii) pre/post processing, and (iii) a case study using Polybench-gpu-1.0, NVIDIA SDK, and Rodinia benchmarks.

Keywords

Cite

@article{arxiv.1905.07653,
  title  = {A Case Study: Exploiting Neural Machine Translation to Translate CUDA to OpenCL},
  author = {Yonghae Kim and Hyesoon Kim},
  journal= {arXiv preprint arXiv:1905.07653},
  year   = {2019}
}
R2 v1 2026-06-23T09:11:42.580Z