SnuCL-Tr

Introduction

OpenCL and CUDA are the most popular programming models for heterogeneous systems. Although OpenCL inherited many features from CUDA and they have almost the same platform model, they are not compatible with each other.

SnuCL-Tr is the first automatic, practical, and bi-directional source-to-source translator between OpenCL and CUDA. The programmer who knows only CUDA can execute a CUDA program on an OpenCL framework easily, and vice versa. Separated CUDA and OpenCL communities can easily share their code base with each other.

Download

Source Code

Download SnuCL-Tr 0.8b (July 2016)

Manual

Quick Start Guide (CUDA to OpenCL) Quick Start Guide (OpenCL to CUDA)

License

/*****************************************************************************/
/*                                                                           */
/* Copyright (c) 2016 Seoul National University.                             */
/* All rights reserved.                                                      */
/*                                                                           */
/* Redistribution and use in source and binary forms, with or without        */
/* modification, are permitted provided that the following conditions        */
/* are met:                                                                  */
/*   1. Redistributions of source code must retain the above copyright       */
/*      notice, this list of conditions and the following disclaimer.        */
/*   2. Redistributions in binary form must reproduce the above copyright    */
/*      notice, this list of conditions and the following disclaimer in the  */
/*      documentation and/or other materials provided with the distribution. */
/*   3. Neither the name of Seoul National University nor the names of its   */
/*      contributors may be used to endorse or promote products derived      */
/*      from this software without specific prior written permission.        */
/*                                                                           */
/* THIS SOFTWARE IS PROVIDED BY SEOUL NATIONAL UNIVERSITY "AS IS" AND ANY    */
/* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED */
/* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE    */
/* DISCLAIMED. IN NO EVENT SHALL SEOUL NATIONAL UNIVERSITY BE LIABLE FOR ANY */
/* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL        */
/* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS   */
/* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)     */
/* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,       */
/* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN  */
/* ANY WAY OUT OF THE USE OF THIS  SOFTWARE, EVEN IF ADVISED OF THE          */
/* POSSIBILITY OF SUCH DAMAGE.                                               */
/*                                                                           */
/* Contact information:                                                      */
/*   Center for Manycore Programming                                         */
/*   Department of Computer Science and Engineering                          */
/*   Seoul National University, Seoul 08826, Korea                           */
/*   http://aces.snu.ac.kr                                                   */
/*                                                                           */
/* Contributors:                                                             */
/*   Junghyun Kim, Dao Thanh Tuan, Jinyoung Joo, Jaehoon Jung, Jaeho Shin,   */
/*   and Jaejin Lee                                                          */
/*                                                                           */
/*****************************************************************************/

*******************************************************************************
Copyrights and Licenses for Third Party Software Distributed with SnuCL-Tr:
*******************************************************************************
The SnuCL-Tr software contains code written by third parties. Such software
will have its own individual LICENSE.TXT file in the directory in which it
appears. This file will describe the copyrights, license, and restrictions
which apply to that code.