MTGP CUDA SAMPLE

READ ME FIRST

This directory contains some sample programs of MTGP for CUDA. Files in this directory are just samples, feel free to copy and change.

I checked these sample files under the environment of CUDA 5.0, But this does not mean these samples use new features of CUDA 5.0.

FILES

Files
Fileexplanation
mtgp-util.cuh utility functions. This file includes ccuda functions, which are wrapper functions of cuda functions.
mtgp32-cuda.cu This is a simple sample for cuda. Output is 32-bit width, MEXP is 11213 and uses constant memories for look-up table.
mtgp64-cuda.cu This is a simple sample for cuda. Output is 64-bit width, MEXP is 11213 and uses constant memories for look-up table.
mtgp32dc-param-11213.c parameter file made by MTGPDC (and some changes)
mtgp64dc-param-11213.c parameter file mada by MTGPDC (and some changes)

Executable Files

sample32-cuda and sample64-cuda are executable files. The executable files needs two arguments: number of block and number of outputs. Invoking without arguments, these executable files show suitable block number for GPU device 0, but this block number is not reliable.