about
A Case Study: Exploiting Neural Machine Translation to Translate CUDA to OpenCL (arxiv.org)
2 points by headalgorithm on May 21, 2019 | hide | past | pdf | discuss on HN

In plain words: A step-by-step recipe trains a text-to-text model to turn CUDA GPU code into OpenCL, covering how to build training pairs and clean the code. Instead of rewriting each program by hand, it was tested on three collections of real GPU programs.

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.

Yonghae Kim, Hyesoon Kim
arXiv:1905.07653 · cs.LG, cs.PL, stat.ML · submitted May 18, 2019
abstract · pdf · html

add comment on HN