# US 2023/0410428 A1 · Hybrid gpu-cpu approach for mesh generation and adaptive mesh refinement

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0410428 A1
- Document ID: US20230410428A1
- Status: Published application
- Kind: A1
- Application number: 18/211,823
- Filed: 2023-06-20
- Published: 2023-12-21
- Earliest claimed: 2022-06-21
- Assignees: Luminary Cloud, Inc.
- Applicants: Luminary Cloud, Inc.
- Inventors: Adrien Loseille; Michael Thomas Mara; Dries Kimpe; Juan José Alonso
- Web page: https://patentgrep.com/patent/US20230410428A1

## CPC

- G06F 30/23: using finite element methods [FEM] or finite difference methods [FDM]
- G06T 17/20: Finite element generation, e.g. wire-frame surface description, {tesselation}
- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 30/28: using fluid dynamics, e.g. using Navier-Stokes equations or computational fluid dynamics [CFD]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A technique manages graphics processing units (GPUs), as well as associated algorithm advancements, to improve and effectively hide computational costs of adaptive mesh refinement (AMR). A cloud-based framework dynamically utilizes a distributed pool of the GPUs to parallelize computations of physical simulation software (solver) partitioned across multiple GPUs. A highly parallelized and distributed architecture of the framework provides a hybrid approach that operates partly on GPUs, e.g., to perform the solver computations, and partly on general-purpose processing units (CPUs) to accelerate portions of AMR and mesh processing of an AMR module. In an illustrative embodiment, the technique leverages the GPUs to perform as much of the AMR module processing (e.g., algorithms that rely on fixed topology) that can be naturally and efficiently implemented on the GPUs, while maintaining those portions of processing that do not naturally map onto the GPUs (e.g., algorithms with dynamic topology changes) on CPUs.

## Claims

### Claim 1

A non-transitory computer readable medium including program instructions for execution on hardware resources, the program instructions configured to:
execute a physical simulation solver (solver) partitioned for concurrent execution on specialized accelerator resources (accelerators) of the hardware resources provided by a data center, wherein the solver uses a mesh to compute a solution;
read an error estimate of the solution into a general-purpose processor resource (processor) of the hardware resources coupled to the accelerators;
compute a refined mesh for the solver concurrently with execution of the solver using the mesh;
replace the mesh with the refined mesh; and
continue concurrent execution of the solver on the accelerators using the refined mesh.

### Claim 2 (depends on 1)

The non-transitory computer readable medium of claim 1, wherein the program instructions for execution on the hardware resources configured to compute the refined mesh are further configured to increase a resolution of a control volume of the mesh used by the solver.

### Claim 3 (depends on 1)

The non-transitory computer readable medium of claim 1, wherein the program instructions for execution on the hardware resources are further configured to incrementally update the mesh to form the refined mesh and push the refined mesh to the accelerators.

### Claim 4 (depends on 1)

The non-transitory computer readable medium of claim 1, wherein the program instructions for execution on the hardware resources configured to compute the refined mesh are further configured to employ a simplified mesh representation having a reduced number of faces for each control volume during refinement of the mesh and wherein the refined mesh used by the solver is a dual mesh having a greater number of faces for each control volume than the simplified mesh representation.

### Claim 5 (depends on 1)

The non-transitory computer readable medium of claim 1, wherein the program instructions for execution on the hardware resources configured to (i) read the error estimate, (ii) compute a refined mesh and (iii) replace the mesh with the refined mesh are further configured to execute at intervals in lock step synchronized with execution of the solver.

### Claim 6 (depends on 1)

The non-transitory computer readable medium of claim 1, wherein the program instructions for execution on the hardware resources configured to compute the refined mesh are further configured to create one or more threads for the mesh refinement to execute on the accelerators corresponding to the concurrent execution of the solver.

### Claim 7 (depends on 6)

The non-transitory computer readable medium of claim 6, wherein the program instructions for execution on the hardware resources configured to compute the refined mesh are further configured to, for each mesh refinement thread, store the refined mesh in a same rank as the corresponding concurrent execution of the solver.

### Claim 8 (depends on 6)

The non-transitory computer readable medium of claim 6, wherein the program instructions for execution on the hardware resources configured to create one or more threads for the mesh refinement to execute on the accelerators are further configured to set a corresponding flag in each thread.

### Claim 9 (depends on 8)

The non-transitory computer readable medium of claim 8, wherein the program instructions for execution on the hardware resources configured to replace the mesh with the refined mesh are further configured to signal the read of another error estimate when the flags of the mesh refinement threads are all set.

### Claim 10 (depends on 1)

The non-transitory computer readable medium of claim 1, wherein the program instructions for execution on the hardware resources configured to continue concurrent execution of the solver are further configured to:
interpolate the solution onto the refined mesh; and
continue concurrent execution of the solver on the accelerators using the refined mesh.

### Claim 11 (depends on 1)

The non-transitory computer readable medium of claim 1, wherein the program instructions for execution on the hardware resources configured to compute the refined mesh are further configured to increase resolution of a plurality of control volumes of the mesh used by the solver.

### Claim 12

A method comprising:
executing a physical simulation solver (solver) partitioned for concurrent execution on specialized accelerator resources (accelerators) provided by a data center, wherein the solver uses a mesh to compute a solution;
reading an error estimate of the solution into a general-purpose processor resource (processor) provided by the data center and coupled to the accelerators;
computing a refined mesh for the solver concurrently with execution of the solver using the mesh;
replacing the mesh with the refined mesh; and
continuing concurrent execution of the solver on the accelerators using the refined mesh.

### Claim 13 (depends on 12)

The method of claim 12, wherein computing the refined mesh further comprises increasing a resolution of a control volume of the mesh used by the solver.

### Claim 14 (depends on 12)

The method of claim 12, wherein computing the refined mesh further comprises increasing resolution of a plurality of control volumes of the mesh used by the solver.

### Claim 15 (depends on 14)

The method of claim 14, wherein computing the refined mesh further comprises employing a simplified mesh representation having a reduced number of faces for each control volume during refinement of the mesh and wherein the refined mesh used by the solver is a dual mesh having a greater number of faces for each control volume than the simplified mesh representation.

### Claim 16 (depends on 12)

The method of claim 12, further comprising incrementally updating the mesh to form the refined mesh and push the refined mesh to the accelerators.

### Claim 17 (depends on 12)

The method of claim 12, wherein (i) reading the error estimate, (ii) computing a refined mesh and (iii) replacing the mesh with the refined mesh are further configured in lock step synchronized with execution of the solver.

### Claim 18 (depends on 12)

The method of claim 12, wherein computing the refined mesh further comprises creating one or more threads for the mesh refinement to execute on the accelerators corresponding to the concurrent execution of the solver.

### Claim 19 (depends on 12)

The method of claim 12, wherein continuing concurrent execution of the solver further comprises:
interpolating the solution onto the refined mesh; and
continuing concurrent execution of the solver on the accelerators using the refined mesh.

### Claim 20

A system comprising:
one or more compute nodes of a virtualized data center (VDC) having hardware resources configured to execute a cloud-based framework to,
execute a physical simulation solver (solver) partitioned for concurrent execution on specialized accelerator resources (accelerators) of the hardware resources, wherein the solver uses a mesh to compute a solution;
read an error estimate of the solution into a general-purpose processor resource (processor) of the hardware resources coupled to the accelerators;
compute a refined mesh for the solver concurrently with execution of the solver using the mesh;
replace the mesh with the refined mesh; and
continue concurrent execution of the solver on the accelerators using the refined mesh.
