# ViDi Suite Service Application – Command Line Arguments

There are several command line arguments that can be used with the ViDi Suite Service application. The following commands can be used to specify the location of workspaces, port numbers for training and runtime, and GPU usage:

Command | Description
--- | ---
--training-workspace-path=file path | Specifies the directory location in which to load and save workspace files.
--runtime-workspace-path=file path | Specifies the directory location in which to load and save runtime workspace files.
--training-port=port number | Specifies the port number which the service listens on for training API connections. The default port is 46892.
--runtime-port=port number | Specifies the port number which the service listens on for runtime API connections. The default port is 46893.
--runtime-only | Starts a runtime-only service that only listens for connections to the runtime API. The default port is 46893 if the --runtime-port is not set. Note: This option conflicts with the --training-port, --workspace-path and --auto-save-interval commands.
--optimized-gpu-memory=memory size, in MB | Specifies the size of the pre-allocated optimized memory buffer. The default value is ⅔ the available amount of GPU memory. If set to 0, the feature is deactivated. Note: See the GPU Memory Optimization topic for more information.
--optimized-gpu-memory-override=[0 or 1] | If using the --optimized-gpu-memory setting, set to 1. If set to 0, the default amount of memory will be allocated.
--gpu-devices=comma separated indexed list of GPUs | Specifies the GPUs that will be used on initialization, via an indexed list. For example: --gpu-devices=0,1
--gpu-mode=NoSupport or SingleDevicePerTool or MultipleDevicesPerTool | Specifies the GPU mode that will be used by the ViDi Suite Service application.
SingleDevicePerTool | A single GPU is used for the analysis of the tool. When using multiple GPUs, the processing time of a single image remains the same, but multiple images can be processed concurrently on different devices.
MultipleDevicesPerTool | For use with the Red Analyze tool, this mode offers the potential of speed increases (in terms of single-image processing latency). Image analysis will be split among multiple GPUs.
NoSupport | Specifies that a GPU will not be used. Note: This option conflicts with --gpu-devices and/or --optimized-gpu-memory.
Note: See the Multithreading topic for more information about the GPU modes.
--auto-save-interval=duration in minutes | Specifies an amount of time between auto-saves of workspaces. The default is 5 minutes. Set to -1 to never auto-save.
--activate-debug-logs=[0 or 1] | Activates logging for debugging purposes.
--help | Used to return a list of command line options.
--version | Requests version information.