gpucoder
Open GPU Coder app
Syntax
Description
gpucoder opens the GPU Coder™ app. To create a project, in the Create GPU Coder Project dialog box, enter a name for the project and select a file
location. To open an existing project, click Open and select
the project file.
If you have the Embedded Coder® product, the app enables Embedded Coder features when it creates a project. To disable Embedded Coder features, in the project build settings, under
Advanced, set Use Embedded Coder
features to No.
gpucoder or
projectnamegpucoder -open opens the
existing project named projectnameprojectname.coderprj by using the
GPU Coder app.
gpucoder -new creates a
GPU Coder project named projectnameprojectname.coderprj and opens the
GPU Coder app. If the Embedded Coder product is installed, the app enables Embedded Coder features when it creates a project.
gpucoder -ecoder false -new
opens the GPU Coder app creating a project named projectnameprojectname.coderprj.
The app creates a project with the Embedded Coder features disabled, even if the Embedded Coder product is installed.
gpucoder -build builds the
existing project named projectnameprojectname.coderprj.
gpucoder -tocode
creates a script named projectname -script scriptnamescriptname.m containing the equivalent
MATLAB® commands for the project settings in
projectname.coderprj.
If scriptname.m exists, gpucoder overwrites
it. The script:
Creates a configuration object named
cfgthat contains project build configuration.Defines the variable
inputTypesfor the function input types.Defines the variable
globalVariablesfor global data initial values.Runs the
codegencommand. When you run the script, the entry-point functions that are arguments tocodegenmust be on the search path.
cfg, inputTypes, and
globalVariables appear in the base workspace only after you
run the script.
gpucoder -tocode converts
the existing project named projectname projectname.prj to the equivalent list
of MATLAB commands and writes them to the Command Window.
gpucoder -toconfig exports
the code configuration settings stored in a GPU Coder project file to a code configuration object. Executing this command
returns a code configuration object corresponding to
projectnameprojectname. For more information on which code
configuration object is returned for different project file settings, see Share Build Configuration Settings.
returns the code configuration settings stored in a GPU Coder project file to a code configuration object. Executing this command
returns a code configuration object corresponding to
cfg = gpucoder("-toconfig",projectname)projectname. For more information on which code
configuration object is returned for different project file settings, see Share Build Configuration Settings.
gpucoder -typeEditor opens an empty Coder Type Editor dialog.
If a dialog is already open, this command brings it to the front of the
screen.
See Create and Edit Input Types by Using the Coder Type Editor.