Run a Case on Virtual GPU

Contents

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_method accepts "VirtualGPU" or "FlexCredit". When omitted, the account default is used.

  • priority is an integer from 1 (lowest) to 10 (highest). It controls the order in which queued jobs are dispatched when vGPU slots become available. Only applies when billing_method="VirtualGPU"; it is ignored otherwise.

  • vgpu_allocation is the number of GPUs the case runs on, from 1 to 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 requires billing_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.