Skip to content

Commit

Permalink
Update configuring-execution.rst
Browse files Browse the repository at this point in the history
fix `CUDAConfig().device` -> `CUDAConfig().device_id`
  • Loading branch information
LangLEvoI authored and Robadob committed Sep 24, 2023
1 parent 3878307 commit 48924a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/guide/running-a-simulation/configuring-execution.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ To configure the simulation in code the variables must be updated via the :class
// Update the configuration
simulation.SimulationConfig().steps = 100;
simulation.SimulationConfig().input_file = "input.json";
simulation.CUDAConfig().device = 1;
simulation.CUDAConfig().device_id = 1;

// Apply the updated configuration
simulation.applyConfig();
Expand All @@ -97,7 +97,7 @@ To configure the simulation in code the variables must be updated via the :class
# Update the configuration
simulation.SimulationConfig().steps = 100
simulation.SimulationConfig().input_file = "input.json"
simulation.CUDAConfig().device = 1
simulation.CUDAConfig().device_id = 1

# Apply the updated configuration
simulation.applyConfig()
Expand All @@ -111,4 +111,4 @@ Related Links
* Full API documentation for :class:`CUDASimulation<flamegpu::CUDASimulation>`
* Full API documentation for :class:`Simulation<flamegpu::Simulation>`
* Full API documentation for :class:`Simulation::Config<flamegpu::Simulation::Config>`
* Full API documentation for :class:`CUDASimulation::Config<flamegpu::CUDASimulation::Config>`
* Full API documentation for :class:`CUDASimulation::Config<flamegpu::CUDASimulation::Config>`

0 comments on commit 48924a1

Please sign in to comment.