
368 Accelerating MATLAB
®
Performance
GPUmat compiler produces binary MEX les that can later be used in other applications.
However, the compiler has a number of limitations, such as:
• Only GPU functions are recorded, MATLAB functions are not included in
compilation.
• All formal parameters of a function being compiled must be dened before the
compilation starts.
• Indexed references and assignments are only supported with slice and assign
functions.
• Temporary variables used in indexed assignments must be dened before the
compilation starts.
• Many arithmetic operations must be replaced with their low-level analogs (start-
ing with GPU*