    

 ## On this page

  

 

 # vss::simulation::AutomaticBatching Struct Reference

 Last update: 14.01.2025 

Defines the automatic batching configuration. [More...](structvss_1_1simulation_1_1_automatic_batching.xhtml#details)

## <a name="pub-attribs"></a>Public Attributes

int32 [max\_number\_of\_ray\_batches](structvss_1_1simulation_1_1_automatic_batching.xhtml#a9b4158e52e07f95a4470f896079fdb2d) = 1 double [gpu\_memory\_quota](structvss_1_1simulation_1_1_automatic_batching.xhtml#a13bce1150714582c1224822348c6f7b8) = 2 map&lt; string, double &gt; [gpu\_quotas](structvss_1_1simulation_1_1_automatic_batching.xhtml#ad5f7c92a370197c4a63f9d69df164822) = 3 <a id="details" name="details"></a>## Detailed Description

Defines the automatic batching configuration.

NoteWith the automatic batching method, the number of batches on rays and on rx channels are computed by the system taking into account the specified two constraints. There are two possibilities for the second constraint according to your needs: To use the default GPU, set the gpu\_memory\_quota. To use any other GPU or several GPUs, set the gpu\_quotas. 

## Member Data Documentation

<a id="a9b4158e52e07f95a4470f896079fdb2d"></a>## [◆ ](#a9b4158e52e07f95a4470f896079fdb2d)max\_number\_of\_ray\_batches

 int32 vss::simulation::AutomaticBatching::max\_number\_of\_ray\_batches = 1

First constraint: the upper bound on the automatically computed number of ray batches.





<a id="a13bce1150714582c1224822348c6f7b8"></a>## [◆ ](#a13bce1150714582c1224822348c6f7b8)gpu\_memory\_quota

 double vss::simulation::AutomaticBatching::gpu\_memory\_quota = 2

Second constraint, option 1: the max fraction (quota) of the total GPU memory that can be used. The default GPU (whose index is 0) will be used.





<a id="ad5f7c92a370197c4a63f9d69df164822"></a>## [◆ ](#ad5f7c92a370197c4a63f9d69df164822)gpu\_quotas

 map&lt;string, double&gt; vss::simulation::AutomaticBatching::gpu\_quotas = 3

Second constraint, option 2: the max fraction (quota) of the total memory of the specified GPU that can be used.

Key \[string\]: The GPU name.

Value \[double\]: The max fraction of the GPU memory that can be used.

NoteThe GPU names must correspond to the [GpuIdentifier](structvss_1_1simulation_1_1_gpu_identifier.xhtml "Represents an identifier for a GPU.") names specified in the deploy parameters. 



---

The documentation for this struct was generated from the following file:- simulation\_parameters.proto