GMEX

From Jacket Wiki

Jump to: navigation, search
GMEX compiling the black_scholes.cu CUDA source code from the Black Scholes SDK example. Below the source is being editted in Cygwin whereas above GMEX is compiling the code into a Jacket-compatible CUDA mex file.
Back to Jacket Function List, Jacket Basics, Jacket SDK

Compile GPU-enabled MEX files using the Jacket SDK (in Windows)

Supported Syntax

gmex [options] [file]

GFOR Compatibility?

N/A. GMEX is utilized to construct MEX functions that can be GFOR-capable.

Requirements

GMEX requires a working installation of Microsoft Visual Studio 2008 and the CUDA 4.0 Toolkit. GMEX is for Windows only. For Linux, Mac, and Windows instructions, see Jacket SDK.

Description

GMEX facilitates the construction of Jacket-compatible GPU-enabled mex files from the MATLAB command prompt in windows. GMEX invokes nvcc with the given [options] and creates a MEX file for the given input source file.

Options

All options are appended to MEX call and, therefore, all options of GMEX conform to MEX options.

Examples

Simple Compilation

Compile bitonic.cu (included with Jacket installation) to create a bitonic.mex file,

  gmex bitonic.cu


Compilation to Directory

Compile bitonic.cu (included with Jacket installation) to create a bitonic.mex file with verbose compilation output and environment configuration,

  gmex bitonic.cu -v


See Also

Jacket SDK

Personal tools