Run a Case on Virtual GPU#
This example demonstrates how to submit a simulation case to the Virtual GPU (vGPU) queue
instead of the standard FlexCredits pay-as-you-go queue.
Use billing_method="VirtualGPU" to route the job through your daily vGPU allocation,
priority to control its scheduling order relative to other queued jobs,
and vgpu_allocation to choose how many GPUs it runs on.
import flow360 as fl
project = fl.Project.from_cloud("PROJECT_ID_HERE")
params: fl.SimulationParams = project.params
# Submit to the Virtual GPU queue with high scheduling priority, on 4 GPUs
project.run_case(
params=params,
name="My vGPU case",
billing_method="VirtualGPU",
priority=8,
vgpu_allocation=4,
)
Notes#
billing_methodaccepts"VirtualGPU"or"FlexCredit". When omitted, the account default is used.priorityis an integer from1(lowest) to10(highest). It controls the order in which queued jobs are dispatched when vGPU slots become available. Only applies whenbilling_method="VirtualGPU"; it is ignored otherwise.vgpu_allocationis the number of GPUs the case runs on, from1to your license maximum, counted in the GPU units of your license (H200 or A100 equivalents). When omitted, the GPU count is chosen automatically. A given count replaces that choice, so a count too small for the case can run out of GPU memory. It requiresbilling_method="VirtualGPU";run_case()raises an error otherwise.The Virtual GPU option requires an active vGPU license on your account. If no vGPU allocation is available, use
billing_method="FlexCredit"instead.You can monitor the queue, change job priorities, or switch a queued job to FlexCredits from the Virtual GPU Scheduler tab in Account Settings.
See also
Fork a Case: submit a follow-on run branching from an existing case.