A computing platform for simulating industrial systems and a method for managing the simulation

The use of a contiguous memory allocator for managing dynamic memory regions and pointers simplifies simulation across heterogeneous processors, reducing errors and development time by enabling implicit memory sharing and effective testing.

JP7538338B2Active Publication Date: 2024-08-21SIEMENS IND SOFTWARE NV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023513863
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-08-27
Filing Date
2021-08-25
Publication Date
2024-08-21
Estimated Expiration
2041-08-25

AI Technical Summary

Technical Problem

Existing simulation programs for industrial systems struggle with efficient management across heterogeneous processors, requiring explicit and complex memory management for dynamic allocations, which complicates code sharing and increases development time.

Method used

A method utilizing a contiguous memory allocator to manage dynamic memory regions and memory pointers, allowing implicit sharing of simulation instances between heterogeneous processors, reducing explicit memory management efforts and enabling easier code maintenance and testing across different architectures.

Benefits of technology

This approach reduces errors and development time by allowing seamless code execution on heterogeneous processors, facilitating efficient simulation model testing and initialization without explicit memory management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007538338000004
    Figure 0007538338000004
  • Figure 0007538338000002
    Figure 0007538338000002
  • Figure 0007538338000003
    Figure 0007538338000003
Patent Text Reader

Abstract

A computing platform for simulating an industrial system and a method for managing the simulation are disclosed, the method including generating at least one instance of a simulation model of the industrial system, generating the instance using a contiguous memory allocator for a dynamic memory region associated with a first processor of heterogeneous processors, enabling a second processor to use the instance in the dynamic memory region based on a memory pointer associated with an address of a copy of the instance, and simulating the industrial system on the second processor by accessing the instance copy.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the simulation of industrial systems, and more particularly to the use of heterogeneous processors in the simulation of industrial systems. [Background technology]

[0002] In simulating an industrial system, a simulation program that simulates the state variables of the industrial system may be executed using one or more types of processors. For example, in the case of an autonomous vehicle, a simulation program may be used to simulate suitable materials for the body of the autonomous vehicle. The simulation program may use class instances, which are libraries with properties of multiple material types. Class instances are central processing unit (CPU) centric and therefore cannot be executed on a graphics processing unit (GPU).

[0003] In another example, the industrial system is a turbine. A simulation program may be used to simulate nitrogen oxide (NOx) emissions from the turbine. A C++ class may be used to read a sensor data file that contains measurements from a NOx sensor in the turbine. Further, the C++ class is used to perform operations on the sensor data based on the simulation program. The sensor data may be read using a CPU. Since the size of the data is not known in advance, dynamic allocation may occur, where the sensor data is read into a memory location accessible by the CPU (CPU memory). Operations are then performed on the memory location using functions of the simulation program.

[0004] In these examples, if you need to use the same code on the GPU, you need to compile the class instance for the GPU code. However, the instance that reads the data in the CPU cannot be shared directly. To share the instance that reads the data, you need to explicitly copy / reconstruct the class instance. In addition, you need to copy the dynamically allocated memory to the GPU memory.

[0005] FIG. 1 illustrates the explicit management of CPU memory / first memory 110 and GPU memory / second memory 120 according to the prior art. Class instance 112 is copied from CPU memory 110 to GPU memory 120 using operation "copy" 132. In accordance with copy operation 132, class instance 122 is stored in GPU memory 120. Class instance 112 may require multiple dynamic allocations, such as dynamic allocation 114 and dynamic allocation 116. The dynamic allocations need to be explicitly copied / reconstructed in GPU memory 120. For example, dynamic allocation 114 is copied using copy operation 134. As a result, dynamic allocation 114 is stored in GPU memory as dynamic allocation 126. Furthermore, dynamic allocation 116 is copied using copy operation 136 and stored in GPU memory 120 as dynamic allocation 124.

[0006] Existing techniques become increasingly complex as the number of dynamic allocations increases. If there are a large number of dynamic allocations, each one needs to be tracked and copied with explicit code, which can be very intrusive to keep track of in the source code for either GPU or CPU code. Summary of the Invention [Problem to be solved by the invention]

[0007] As discussed above, there is a need for improved management of simulation programs that may use heterogeneous processors. It is an object of the present invention to provide a system and method for managing a simulation of an industrial system using heterogeneous processors in the simulation. [Means for solving the problem]

[0008] By way of example, the object of the invention is achieved by a method for managing a simulation of an industrial system using heterogeneous processors, the method comprising: generating at least one instance of a simulation model of the industrial system, the method comprising: generating the instance using a contiguous memory allocator (CMA) in a dynamic memory region associated with a first one of the heterogeneous processors, making the instance of the dynamic memory region available to a second processor based on a memory pointer associated with an address of a copy of the instance, and simulating the industrial system by the second processor by accessing the copy of the instance.

[0009] In another example, to achieve the above objectives, a computing platform for simulating an industrial system is disclosed, the computing platform including heterogeneous processors, a first memory accessible by a first processor, a second memory allocated based on usage of the first memory in a second processor, and a memory allocation module configured to generate at least one memory pointer to at least one instance of a simulation model of the industrial system, the instance being initialized by the first processor and a copy of the instance being used by the second processor.

[0010] Another example includes a computer program product having machine-readable instructions recorded thereon that, when executed on a computing platform as disclosed herein, cause the computing platform to perform the method steps as disclosed herein.

[0011] The technical effect of the contiguous memory allocator, the allocated dynamic memory regions, and the memory pointers is a reduction in the effort to explicitly share code between heterogeneous processors. As a result, errors due to explicit memory management can be avoided. The present invention proposes a technique to implicitly manage memory used by at least one of the heterogeneous processors. In particular, it provides an implicit way to share instances of a simulation model of an industrial system between heterogeneous processors. Thereby, the present invention allows complex initialization of classes (e.g., reading data from disk, processing data, etc.) while using heterogeneous processors. Furthermore, the present invention has the advantage that it allows maintaining the same code when developing hybrid simulation programs that use heterogeneous processors in their execution. Moreover, the present invention allows easier and more effective testing of the simulation model, since the same simulation program is executed on different architectures. As a result, the present invention can reduce the development time of a simulation model and simulation of an industrial system.

[0012] Before describing the proposed concepts in more detail, it should be understood that various definitions of certain words and expressions are provided throughout this document, and those of ordinary skill in the art will appreciate that such definitions apply in many, if not all, instances to past and future uses of the defined words and expressions. While some terms include broad forms, the claims may specifically limit those terms to specific forms. It should also be understood that features described in the context of the proposed method may also be included in the proposed system, and vice versa, by appropriately configuring and adapting the system.

[0013] As used herein, an "industrial system" refers to a system / facility used in production, manufacturing, and may be semi-automated or fully automated. An industrial system may be part of an automated environment, such as an industrial automation environment, a power plant automation environment, an autonomous vehicle automation environment, a laboratory automation environment, a building automation environment, etc. Furthermore, in accordance with the present invention, an automated environment may include one or more combinations of an industrial automation environment, a laboratory automation environment, and a building automation environment.

[0014] An industrial system may also relate to physical devices and controllers, sensors, actuators, including digital models that may be used to configure and control the physical devices. For example, computer numerical control (CNC) machines, automation systems in industrial production facilities, motors, generators, etc. An industrial system may also relate to complex systems that use one or more controllers, actuators, and sensors that interact with each other. For purposes of the present invention, an industrial system is any system whose operation and function can be simulated using heterogeneous processors. Those skilled in the art will appreciate that an industrial system is not limited to a particular industry, and that simulation applications are widely used throughout industries.

[0015] As used herein, "sensor data" refers to data related to the operation and operating conditions of an industrial system. The sensor data is received from a variety of sources (e.g., sensors, user devices, etc.). The sensors measure operational parameters related to the system. For example, sensors include thermal imagers, vibration sensors, current and voltage sensors, etc. The term "operational parameters" refers to one or more characteristics of a system. That is, the sensor data is a measurement of an operational parameter related to the operation of the system. For example, the sensor data includes data points representing vibration, temperature, current, magnetic flux, speed, power related to an industrial system such as a motor, or rotor in an industrial environment. The sensor data is used by the simulation model to generate at least one instance of the simulation model.

[0016] As used herein, a "heterogeneous processor" refers to multiple types of processors or cores. A computing platform with heterogeneous processors has special processing capabilities that account for the heterogeneous processors. In one example, a computing platform includes heterogeneous processors such as a central processing unit (CPU) and a graphics processing unit (GPU). For example, a heterogeneous processor includes at least a CPU and a GPU, where a first processor is a CPU and a second processor is a GPU, or vice versa.

[0017] Heterogeneous processors are often used to simulate industrial environments, especially in the case of co-simulation. In one example, instances and libraries implementing a simulation model of an industrial model are available in a first memory associated with a first processor. When co-simulating the simulation model using a second processor, the instances are made available to the second processor using the present invention. That is, the present invention addresses the situation where simulation instances or objects are stored in multiple dynamic address spaces in a first memory and can be invoked by a second processor with associated virtual functions / dynamic allocations.

[0018] In one example, the industrial system is an autonomous vehicle, and the simulation model in this case includes an environmental model of the autonomous vehicle's surroundings, a physics-based model, and a predictive model of the autonomous vehicle's operating parameters. The simulation model for the autonomous vehicle is advantageous in providing an early virtual test, which can protect the autonomous vehicle manufacturer from potentially costly collisions and accidents on the road. The simulation model is configured to execute an instance of the environmental model to enable the autonomous vehicle's controller to react to various traffic scenarios simulated by the environmental model. In one example, the traffic scenarios are stored as a library in a first memory associated with the first processor. When initialized, each traffic scenario is configured to require dynamic allocation in the first memory. Furthermore, a second processor is used to simulate output signals (such as speed reduction) of the autonomous vehicle's controller based on the initialized traffic scenarios. That is, the present invention enables the second processor to access the initialized traffic scenarios based on a memory pointer associated with an address of a copy of the traffic scenario.

[0019] For example, the method includes generating a plurality of instances of a simulation model based on a plurality of configurations for an autonomous vehicle and a plurality of objects and object parameters in a vehicle environment. The plurality of instances are generated by a first simulation application. Furthermore, the plurality of configurations and the plurality of objects and object parameters are a software library that is read by the first simulation application. The method also includes dynamically allocating the plurality of instances in a dynamic memory area and copying the dynamic memory area to a second memory accessed by a second simulation application. Further, the method includes co-simulating the initialized instances with the second simulation application and determining an optimal configuration for the autonomous vehicle based on the co-simulation. Thus, the present invention has the advantage of enabling efficient use of heterogeneous processors to simulate and configure an autonomous vehicle.

[0020] Those skilled in the art will appreciate that the example of an autonomous vehicle is in no way limiting, and the technical effects of the present invention may be achieved in any industrial system that is simulated using a simulation model running on a heterogeneous processor.

[0021] In one example, the industrial system is a turbine of an industrial plant, where the simulation model includes physics-based functions and predictive functions for simulating the operation of the turbine. The simulation model of the turbine is configured to simulate all aspects of the turbine, including a detailed structural model of the turbine blades that determines stresses and strains. For example, in the case of a wind turbine, the simulation model includes an aerodynamic model of the rotor that simulates the operation of the wind turbine for wind scenarios. In this example, the wind scenarios are generated based on historical measurements of weather conditions or through predictive functions applied to weather conditions based on machine learning models. The first processor is configured to generate the wind scenarios and store them as a library in the first memory. The aerodynamic model is executed by the second processor by accessing the wind scenarios in the first memory based on a memory pointer associated with an address of a copy of the wind scenarios.

[0022] In one example, the method includes generating a contiguous memory allocator for allocating dynamic memory regions in a first memory of a first processor, where the simulation model is stored in the dynamic memory region of the first memory. The contiguous memory allocator is configured to allocate the dynamic memory region by defining arenas / regions of the first memory in which instances can be individually allocated. The dynamic memory region has the advantage of facilitating memory allocation and deallocation in a flexible manner with low overhead.

[0023] The method further includes providing dynamic allocations by the contiguous memory allocator in response to requests by the instances, where the dynamic allocations are provided in a dynamic memory region, with each dynamic allocation being referenced relatively by a special (dedicated) memory pointer instance, which is configured to determine its relative distance to the dynamic allocation. The memory pointers are generated using the special memory pointer instance. That is, the method ensures that additional allocations associated with the simulation instance are made in the dynamic memory region. Further, subsequent dynamic allocations are simply mapped based on their relative distance from the special memory pointer instance. The relative distance is used to reference the dynamic allocations by the memory pointer, which allows the second processor to access the dynamic allocations. In this manner, the simulation model of the industrial system is initialized with complex initialization by the first processor without explicit memory management concerns between the first processor and the second processor.

[0024] In one example, the method includes allocating a second memory associated with a second processor relative to a size of the first memory based on consumption of the first memory by a simulation model stored in the dynamic memory region. The second memory is provided as memory sufficient to store the simulation model, the simulation instance, and subsequent dynamic allocations. The method further includes copying the first memory to the second memory based on the allocation, where a special memory pointer instance points to the dynamic allocation in the second memory such that the simulation model is accessible to the second processor for execution. Copying the contents of the first memory to the second memory copies the dynamic memory region with the dynamic allocation and the special memory pointer instance to the second memory. The copied special memory pointer instance is configured to generate a memory pointer that maps the dynamic allocation based on a relative distance.

[0025] The method includes initializing an instance on a first processor, the instance being initialized to execute at least one function; and referencing the initialized instance by a second processor using a memory pointer and an instance copy. That is, the present invention proposes that once a class (simulation model) is instantiated, the instance can be simply copied using a normal memory copy. The instance copy can be used by the second processor using a memory pointer. The method further includes allocating a dynamic memory region to a first simulation application executed by the first processor, the first simulation application generating the initialized instance; and accessing the initialized instance by copying the dynamic memory region to a second memory associated with a second simulation application executed by the second processor, the initialized instance being used by the second simulation application to simulate the industrial system.

[0026] The method therefore also includes simulating the industrial system by the second processor by executing the simulation model copied to the second memory. The method is particularly useful when developing hybrid solutions involving CPU and GPU. Significantly reduced development time can be realized due to fewer errors resulting from explicit memory management. Furthermore, testing of the simulation model is made easier, more effective and more accurate due to the use of a different architecture.

[0027] In one example, the method includes mapping addresses of the dynamic memory region to a set of memory pointers, the set of memory pointers including memory pointers to addresses of instances in the dynamic memory region, and generating a special memory pointer instance based on a relative distance between an address of the special memory pointer instance and an address of the instance in the dynamic memory region.

[0028] In one example, the method includes allocating a dynamic memory region accessible to the heterogeneous processors, defining a special memory pointer for an instance with respect to the dynamic memory region, identifying whether the instance is specific to a first processor or a second processor, and sharing the instance and instance copies between the heterogeneous processors based on the identifying result, where an address of the instance in the dynamic memory region is determined using the special memory pointer. The method provides a way to identify which functions are specific to a CPU and / or a GPU. [Brief description of the drawings]

[0029] The invention will now be described with reference to the embodiments shown in the following figures.

[0030] [Figure 1] FIG. 1 shows explicit management between heterogeneous processors according to the prior art. [Diagram 2] FIG. 1 shows a block diagram of a computing platform for simulating an industrial system according to one embodiment of the present invention. [Diagram 3] FIG. 1 shows a flow diagram of a method for managing a simulation of an industrial system using heterogeneous processors according to one embodiment of the present invention. [Figure 4] 1 illustrates method steps of a method for managing a simulation of an industrial system using heterogeneous processors according to one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0031] In the following, embodiments for carrying out the present invention will be described in detail. Various embodiments are disclosed with reference to the drawings, in which like reference numerals are used to refer to like elements throughout. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of one or more embodiments. It will be apparent that these embodiments can be practiced without these specific details.

[0032] FIG. 2 illustrates a block diagram of a computing platform 200 for simulating one or more autonomous vehicles using heterogeneous processors 242, 262, in accordance with one embodiment of the invention.

[0033] The computing platform 200 includes an environment module 210 configured to generate an environment model that reflects the environment surrounding the autonomous vehicle. The environment model is generated from sensor data 212 and 214. The sensor data 212 includes sensor values ​​indicative of the acceleration, deceleration, wheel slip angle, and vehicle roll of the autonomous vehicle. Furthermore, the sensor data 214 includes LiDAR, camera, and radar sensor data. A simulation of the autonomous vehicle can be performed by generating the environment model through reconstruction of the sensor data 212 and 214. The environment model thus acts as a digital representation of the autonomous vehicle and the associated environment.

[0034] The computing platform 200 also includes a scenario database 220. Simulations of the autonomous vehicle are performed for multiple scenarios representing one or more traffic conditions. The controller of the autonomous vehicle is required to recognize and react to a large number of complex scenarios. The scenarios are stored in the scenario database 220.

[0035] The computing platform 200 includes a simulation module 230 configured to generate a simulation model. The simulation model is a physics-based model of an autonomous vehicle and an environment model. The simulation model may include multiple behavior instances of the autonomous vehicle. The simulation module 230 includes an instance generator 232 for generating a simulation instance. The simulation instance is generated from the simulation model and is executable by the heterogeneous processors 242, 262. The simulation instance may be generated as an object created from the simulation module. The simulation module acts as a class to create the object, i.e., the simulation instance.

[0036] The computing platform 200 includes a computing unit 240 including heterogeneous processors 242 and 262. In FIG. 2, the heterogeneous processors are a CPU 242 and a GPU 262. The computing unit 240 further includes a first memory 250 associated with the CPU 242 and a second memory 270 associated with the GPU 262. The computing unit 240 also includes a display 280 configured to display the graphical user interfaces 244 and 264. In one embodiment, the computing unit 240 may include the simulation module 230, the scenario database 220, and the environment module 210.

[0037] The CPU 242 and the GPU 262 execute simulation applications 256 and 274 (Sim app 1 and 2) stored in memories 250 and 270, respectively, to simulate the behavior of the autonomous vehicle. The results of the simulation are displayed on the display 280 via the GUIs 244 and 264, respectively.

[0038] The first memory 250 includes a dynamic memory region 252 and a memory allocator module 254. In operation, the memory allocator module 254 is configured to generate a contiguous memory allocator to allocate the dynamic memory region 252. Additionally, the memory allocator module 254 is configured to generate memory pointers used by the GPU 262 using special memory pointer instances. Operational details are shown in FIG.

[0039] A contiguous memory allocator can be used to instantiate a simulation instance. Once instantiated, the simulation instance generates a unique representation of the simulation model. Furthermore, dynamic allocations required by the simulation instance are provided by the contiguous memory allocator in the dynamic memory region. The second memory 270 includes a copy of the dynamic memory region 272. The GPU 262 can access the simulation instance instantiated in the dynamic memory region 252 through the instance copy stored in the dynamic memory region 272. The dynamic memory region 252 includes special memory pointer instances, which refer to the instantiated instances based on their relative distance to the dynamic memory region 252. The operation of the computing unit 240 is illustrated in FIG. 3.

[0040] 3 illustrates a flow diagram of a method for managing a simulation of an autonomous vehicle using heterogeneous processors 242, 262, according to one embodiment of the invention. In step 302, the computing unit 240 receives a description of a simulation model with Function 1, Function 2, and SpecialPointer P. Function 1 and Function 2 are based on simulation operations executed using a simulation application 256, 274.

[0041] In step 304, the contiguous memory allocator allocates instance memory for a simulation instance of the simulation model. In step 306, a simulation instance 342 and a special memory pointer instance 344 are created in CPU memory 250 in dynamic memory region 252. The simulation instance 342 includes the special memory pointer instance 344.

[0042] In step 308, a dynamic memory region is allocated to the special memory pointer instance 344. In step 310, a dynamic allocation by the contiguous memory allocator responds to the request by the simulation instance 342. Dynamic allocations 346 and 348 are provided in the dynamic memory region. As shown, dynamic allocation A 346 and dynamic allocation B 348 are provided randomly, and therefore, in the prior art, it would be difficult to reference dynamic allocations 346 and 348 (as shown in FIG. 1). Each of dynamic allocations 346 and 348 is relatively referenced by special memory pointer instance 344 based on its relative distance 350 to dynamic allocations 346 and 348.

[0043] At step 312, CPU memory 250 is copied to GPU memory 270. As a result, an instance copy 362 of simulation instance 342 and a pointer copy 364 of special memory pointer instance 344 are created in the copy of dynamic memory area 272. Dynamic allocations 346 and 348 are also copied to dynamic allocations 366 and 368. Pointer copy 364 may be different from special memory pointer instance 344. Pointer copy 364 is nevertheless configured to reference dynamic allocations 366 and 368 based on relative distance 350.

[0044] At step 314, the simulation model is compiled using GPU 262. Further, at step 316, GPU 262 can access dynamic allocations 366 and 368 using pointer copy 364. Pointer copy 364 can identify dynamic allocations 366 and 368 based on relative distance 350. As can be seen, the present invention overcomes the challenge of explicitly managing memory between CPU 242 and GPU 262.

[0045] In one example, the simulation application 256 is associated with simulating materials used in an autonomous sedan vehicle. Simulating the materials allows for the determination of the strength, stiffness, and crash response of the autonomous sedan vehicle. For this simulation, the simulation application 256 initializes a C++ library of material properties that are read only by the CPU 242. Examples of material properties include wavelength, elasticity, flame retardancy, electrical conductivity, and thermal conductivity. The simulation application 274 is associated with simulating damage and fatigue of the autonomous hatchback vehicle. The material library initialized by the simulation application 256 is accessed by the simulation application 274 according to the methods described above.

[0046] One of ordinary skill in the art will appreciate that the autonomous vehicle example can be extended to any industrial system that is simulated using heterogeneous processors. Figure 4 illustrates method steps of a method for managing a simulation of an industrial system using heterogeneous processors, according to one embodiment of the present invention.

[0047] The method includes generating at least one instance of a simulation model of the industrial system. The simulation model is a physics-based model of the industrial system and a machine learning based predictive model. The simulation model can simulate multiple behavioral instances of the industrial system based on the physics-based model and the predictive model. The simulation instances are generated from the simulation model and are executable by heterogeneous processors, which may be referred to as hybrid simulation models. The simulation instances can be generated as objects created from a simulation module. The simulation module acts as a class to create the objects (simulation instances).

[0048] As used herein, a "physics-based model" may include system identification, relevant assemblies associated with an industrial system, operating conditions associated with the industrial system, system parameters, and relationships between system parameters and predicted performance indicators. For example, physics-based models may include one-dimensional representations, three-dimensional representations, process and instrumentation representations associated with an industrial system. Physics-based models may also include representations of the dynamics of the industrial system, mechanical functions with electronics and controls, materials and manufacturing methods. Physics-based models may also be simulated to predict the behavior of the industrial system.

[0049] As used herein, a "predictive model" includes a data-based model of an industrial system. For example, a predictive model may be generated by analyzing at least one of sensor data, historical operational data, and synthetic data associated with the industrial system using one or more machine learning algorithms, such as pattern recognition algorithms. The sensor data may be analyzed in real-time using the machine learning algorithms. Additionally, the historical operational data refers to sensor data at an instant in time. Additionally, the synthetic data includes data generated based on the sensor data or the historical operational data using a statistical predictive algorithm.

[0050] At least one simulation instance (hereinafter referred to as an instance) is created using a contiguous memory allocator for a dynamic memory region associated with a first processor of the heterogeneous processors, in step 410. For example, as shown in step 306, the contiguous memory allocator is generated by the first processor to allocate the dynamic memory region in a first memory associated with the first processor. Thus, in step 420, a contiguous memory allocator is generated to allocate the dynamic memory region.

[0051] The instance created in the dynamic memory region requires dynamic allocation. Thus, in step 430, dynamic allocation is provided in the dynamic memory region. As a result, memory is allocated to the instance of the additional function that is initialized when the instance is instantiated. Step 430 also includes referencing the dynamic allocation relatively by a special memory pointer instance. For example, as shown in step 310, the special memory pointer instance is set to determine a relative distance to the dynamic allocation.

[0052] At step 440, a second processor of the heterogeneous processors is enabled to use the instance based on a memory pointer associated with an address of the copy of the instance. The memory pointer determines the address of the instance copy using a special memory pointer instance. In one embodiment, the instance copy is generated by allocating a second memory associated with the second processor to a size of the first memory based on consumption of the first memory by the instance created in the dynamic memory region. The instance copy is also generated by copying the first memory to the second memory based on the allocation, where a special memory pointer points to the instance copy in the second memory, e.g., as shown in steps 312 and 316, such that the instance is accessible by the second processor for execution.

[0053] At step 450, the industrial system is simulated by a second processor by accessing the instance in the dynamic memory area. For example, the simulation model is compiled using the second processor using the instance copy. In one embodiment, step 450 includes referencing the instance copy by a simulation application running on the second processor using a special memory pointer instance.

[0054] The present invention may take the form of a computer program recorded product, including program modules accessible from a computer usable or computer program recorded product / computer readable medium having program code recorded thereon for use by or in connection with one or more computers, processors, or instruction execution systems. For purposes of explanation, a computer usable or computer readable medium may be any apparatus that can contain, store, communicate, propagate, or transfer a program for use by or in connection with an instruction execution system, apparatus, or device. The medium may be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device), or a propagation medium therein or therein that is a signal carrier not included in the definition of a physical computer readable medium, including semiconductor or solid state memory, magnetic tape, removable computer diskettes, random access memory (RAM), read only memory (ROM), compact disk read only memory (CD-ROM), compact disk read / write, and DVD. Both the processor and the program code for implementing each aspect of the technology may be centralized or distributed (or a combination thereof), as known to those of ordinary skill in the art.

[0055] Although the present invention has been described in detail with reference to specific embodiments, it is to be understood that the present invention is not limited to these embodiments. Based on the contents of the disclosure herein, those skilled in the art can understand that there are many modifications and derivations without departing from the scope of the various embodiments of the present invention described herein. Therefore, the scope of the present invention is indicated not by the above description but by the claims. All modifications, variations, and derivations that are within the meaning and range of equivalence of the claims should be considered within their scope. All advantageous aspects of the method claims also apply to the system / apparatus / device claims.

Claims

1. A method for managing a simulation of an industrial system using heterogeneous processors (242, 262), comprising: generating at least one instance of a simulation model of the industrial system; generating a contiguous memory allocator for allocating a dynamic memory region (252) in a first memory (250) associated with a first one of the heterogeneous processors (242, 262), the simulation model being stored in the dynamic memory region (252) of the first memory (250); generating an instance (342) using the contiguous memory allocator of the dynamic memory region (252) associated with the first processor (242) of the heterogeneous processors (242, 262), the generating of the instance (342) including providing dynamic allocations (346, 348) by the contiguous memory allocator in response to requests by the instance (342), the dynamic allocations (346, 348) being provided to the dynamic memory region (252); enabling a second one of the heterogeneous processors to use the instance of the dynamic memory region based on a memory pointer associated with an address of a copy of the instance; allocating a second memory (270) associated with the second processor (262) to a size of the first memory (250) based on a consumption of the first memory (250) by the simulation model stored in the dynamic memory area (252); copying the first memory (250) to the second memory (270) based on the allocation, and a special memory pointer instance (364) pointing to the dynamic allocation (366, 368) of the second memory (270) so that the simulation model is accessible by the second processor (262) for execution; simulating the industrial system on the second processor (262) by executing the simulation model copied to the second memory (270); the dynamic allocation (346, 348) is relatively referenced by a special memory pointer instance (344), the special memory pointer instance (344, 364) is configured to determine its relative distance to the dynamic allocation (346, 348), and the memory pointer is generated using the special memory pointer instance (344, 364).

2. Allocating the dynamic memory region (252) accessible by the heterogeneous processors (242, 262); Creating the special memory pointer instance (344) of the instance for the dynamic memory region (252); 2. The method of claim 1, further comprising sharing the instance (342) and a copy (362) of the instance between the heterogeneous processors (242, 262), and an address of the instance (342) in the dynamic memory region (272) is determined using the special memory pointer instance (344, 364).

3. initializing the instance (342) on the first processor (242), the instance (342) being initialized to execute at least one function; 3. The method of claim 1, further comprising: referencing the initialized instance (342) on the second processor (262) using the memory pointer and a copy (362) of the instance.

4. allocating the dynamic memory area (252) to a first simulation application (256) executed by the first processor (242), the first simulation application (256) creating the initialized instance; 4. The method of claim 3, further comprising: accessing the initialized instance by copying the dynamic memory region to the second memory associated with a second simulation application executed by the second processor, the initialized instance being used by the second simulation application to simulate the industrial system.

5. 2. The method of claim 1, wherein the heterogeneous processors (242, 262) include at least a Central Processing Unit (CPU) and a Graphics Processing Unit (GPU), and the first processor (242) is the CPU and the second processor (262) is the GPU, or vice versa.

6. 2. The method of claim 1 , wherein the industrial system is an autonomous vehicle, and the simulation model includes an environmental model of an environment surrounding the autonomous vehicle, a physics-based model, and a predictive model of an operating parameter of the autonomous vehicle.

7. The method of claim 4, wherein the industrial system is an autonomous vehicle and the simulation model includes an environmental model of an environment surrounding the autonomous vehicle, a physics-based model, and a predictive model of operating parameters of the autonomous vehicle.

8. generating a plurality of instances of the simulation model based on a plurality of configurations of the autonomous vehicle and a plurality of objects and object parameters of a vehicle environment, the plurality of instances being generated by the first simulation application (256), the plurality of configurations and the plurality of objects and object parameters being read by the first simulation application (256); dynamically allocating said instances in said dynamic memory area (252); copying the dynamic memory region (252) to the second memory (270) accessed by the second simulation application (274); co-simulating the initialized instance with the second simulation application (274); The method of claim 7 , further comprising determining an optimal configuration of the autonomous vehicle based on the co-simulation.

9. The method of claim 1 , wherein the industrial system is a turbine of an industrial plant, and the simulation model includes physics-based functions and predictive functions for simulating operation of the turbine.

10. A computing platform for simulating an industrial system, comprising: (1) two or more heterogeneous processors (242, 262) including a first processor (242) and a second processor (262); (2) a first memory (250) associated with the first processor (242) and a second memory (270) associated with the second processor (262); (3) a memory allocation module; The memory allocation module: (a) generating a contiguous memory allocator for allocating a dynamic memory region (252) in the first memory (250), a simulation model being stored in the dynamic memory region (252) of the first memory (250), the contiguous memory allocator being configured to provide dynamic allocations (346, 348) in response to requests by instances (342) of the simulation model, the dynamic allocations (346, 348) being provided in the dynamic memory region (252); (b) enabling the second processor (262) of the heterogeneous processors (242, 262) to use the instance (342) of the dynamic memory region (252) based on a memory pointer associated with an address of a copy (362) of the instance (342); (c) allocating the second memory (270) associated with the second processor (262) to a size of the first memory (250) based on a consumption of the first memory (250) by the simulation model stored in the dynamic memory area (252); (d) copying the first memory (250) to the second memory (270) based on the allocation, and a special memory pointer instance (364) pointing to the dynamic allocation (366, 368) of the second memory (270) so that the simulation model is accessible by the second processor (262) for execution; (e) a computing platform, wherein the dynamic allocations (346, 348) are relatively referenced by special memory pointer instances (344), the special memory pointer instances (344, 364) configured to determine their relative distances to the dynamic allocations (346, 348), the memory pointers are generated using the special memory pointer instances (344, 364), and the second processor (262) is capable of simulating the industrial system on the second processor (262) by executing the simulation model copied to the second memory (270).

11. 11. The computing platform of claim 10, wherein the heterogeneous processors (242, 262) include at least one of a Central Processing Unit (CPU) and a Graphics Processing Unit (GPU), and the first processor (242) is the CPU and the second processor (262) is the GPU.

12. 11. A computer program product having machine readable instructions recorded thereon, the ... computer program stored thereon, the computer program product having machine readable instructions recorded thereon, the computer program product having computer program stored thereon, the computer program product having

Citation Information

Patent Citations

  • Method for managing object-oriented memory, analysis program, and nuclear reactor core property analysis program

    JP2007188384A

  • Program execution system

    JP2009211167A

  • Direct memory access for co-processor memory

    US20190005606A1