CN115718653B - Data call optimization method and system for simulation platform - Google Patents
Data call optimization method and system for simulation platform Download PDFInfo
- Publication number
- CN115718653B CN115718653B CN202211482819.7A CN202211482819A CN115718653B CN 115718653 B CN115718653 B CN 115718653B CN 202211482819 A CN202211482819 A CN 202211482819A CN 115718653 B CN115718653 B CN 115718653B
- Authority
- CN
- China
- Prior art keywords
- data group
- data
- simulation
- calling
- sequence
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本申请提出用于仿真平台的数据调用优化方法及系统,所述方法包括:获取仿真系统进行当前仿真计算时所述调用的各数据组和所述仿真系统的步长;根据所述仿真系统的步长确定各所述数据组的初始调用优先级指标值;根据各所述数据组的初始调用优先级指标值确定所述当前仿真计算对应的数据组调用时间顺序表;基于所述数据组调用时间顺序表进行各所述数据组的调用。本申请提出的技术方案,既满足了方程计算的数据需求,同时降低了调用次数,减少了方程求解的总时间,提高了仿真的效率。
The present application proposes a data call optimization method and system for a simulation platform, the method comprising: obtaining each data group called when the simulation system performs the current simulation calculation and the step length of the simulation system; determining the initial call priority index value of each data group according to the step length of the simulation system; determining the data group call time sequence table corresponding to the current simulation calculation according to the initial call priority index value of each data group; calling each data group based on the data group call time sequence table. The technical solution proposed in the present application not only meets the data requirements of equation calculation, but also reduces the number of calls, reduces the total time of equation solving, and improves the efficiency of simulation.
Description
技术领域Technical Field
本申请涉及数据调用领域,尤其涉及用于仿真平台的数据调用优化方法及系统。The present application relates to the field of data calling, and in particular to a data calling optimization method and system for a simulation platform.
背景技术Background technique
仿真平台一般包含若干个子系统,仿真过程中的中间数据可以存储在任意一个子系统的存储空间内部。当系统的某个仿真计算开始进行(一般指某个方程开始求解)前,需要先把所需数据从存储空间中调用到主计算模块所需使用的缓存空间中。由于求解所需的数据量较大,主计算模块的缓存空间相对有限,所以以何种顺序进行数据的调用,如何开辟或释放主计算模块的缓存空间,就是仿真系统的数据调用优化技术。The simulation platform generally contains several subsystems, and the intermediate data in the simulation process can be stored in the storage space of any subsystem. Before a simulation calculation of the system starts (generally referring to the start of solving a certain equation), the required data needs to be called from the storage space to the cache space required by the main computing module. Since the amount of data required for solving is large and the cache space of the main computing module is relatively limited, the order in which the data is called and how to open up or release the cache space of the main computing module are the data call optimization techniques of the simulation system.
现有技术方案下,通常根据主计算模块中的计算时间顺序决定数据调用的顺序。即,方程先用到哪些数据,就将哪些数据从子系统的存储空间内部调用出来,暂存入主计算模块所需使用的缓存空间中,数据使用完毕后,则释放相应的缓存空间。虽然调用数据的顺序比较清晰,但是由于每一次调用操作会消耗额外的系统时间,导致方程求解的总时间增加,降低了仿真的效率。Under the existing technical solution, the order of data calling is usually determined according to the calculation time sequence in the main calculation module. That is, the data used by the equation first is called out from the storage space of the subsystem and temporarily stored in the cache space required by the main calculation module. After the data is used, the corresponding cache space is released. Although the order of calling data is relatively clear, each call operation consumes additional system time, which increases the total time of solving the equation and reduces the efficiency of the simulation.
发明内容Summary of the invention
本申请提供用于仿真平台的数据调用优化方法及系统,以至少解决由于每一次调用操作会消耗额外的系统时间,导致方程求解的总时间增加,降低了仿真的效率的技术问题。The present application provides a data call optimization method and system for a simulation platform, in order to at least solve the technical problem that each call operation consumes additional system time, resulting in an increase in the total time for solving equations and a reduction in the efficiency of the simulation.
本申请第一方面实施例提出一种用于仿真平台的数据调用优化方法,所述方法包括:The first embodiment of the present application provides a data call optimization method for a simulation platform, the method comprising:
获取仿真系统进行当前仿真计算时所述调用的各数据组和所述仿真系统的步长;Acquire each data group called when the simulation system performs current simulation calculation and the step size of the simulation system;
根据所述仿真系统的步长确定各所述数据组的初始调用优先级指标值;Determine the initial call priority index value of each of the data groups according to the step size of the simulation system;
根据各所述数据组的初始调用优先级指标值确定所述当前仿真计算对应的数据组调用时间顺序表;Determine the data group call time sequence table corresponding to the current simulation calculation according to the initial call priority index value of each data group;
基于所述数据组调用时间顺序表进行各所述数据组的调用;Calling each of the data groups based on the data group calling time sequence table;
其中,所述各数据组是根据所述仿真计算的仿真步骤划分的。The data groups are divided according to the simulation steps of the simulation calculation.
优选的,所述根据所述仿真系统的步长确定各所述数据组的初始调用优先级指标值之前,包括:Preferably, before determining the initial call priority index value of each data group according to the step size of the simulation system, the method further comprises:
将所述各数据组按照所述仿真计算的步骤进行排序,形成第一数据组序列。The data groups are sorted according to the steps of the simulation calculation to form a first data group sequence.
进一步的,各所述数据组的初始调用优先级指标值的计算式如下:Furthermore, the calculation formula of the initial call priority index value of each data group is as follows:
式中,xi为第一数据组序列中第i数据组的初始调用优先级指标值,T为仿真系统的步长,si为第一数据组序列中第i数据组的数据量,ti为第一数据组序列中第i数据组的传输延时时长。Wherein, xi is the initial call priority index value of the i-th data group in the first data group sequence, T is the step size of the simulation system, si is the amount of data of the i-th data group in the first data group sequence, and ti is the transmission delay duration of the i-th data group in the first data group sequence.
优选的,所述根据各所述数据组的初始调用优先级指标值确定所述当前仿真计算对应的数据组调用时间顺序表,包括:Preferably, the step of determining the data group call time sequence table corresponding to the current simulation calculation according to the initial call priority index value of each data group includes:
步骤F1:根据各所述数据组的初始调用优先级指标值将各所述数据组按照从小到大的顺序排序,形成第二数据组序列,令j=1,其中j为所述第二数据组序列中的第j个数据组;Step F1: sorting the data groups in ascending order according to the initial call priority index value of each data group to form a second data group sequence, and setting j=1, where j is the jth data group in the second data group sequence;
步骤F2:释放当前仿真计算对应的主系统缓冲区内步骤q至步骤Q用不到的数据组,并更新当前时刻主系统缓冲区最大容纳量;其中,q∈[1~Q],Q为仿真所需的步骤总数,q=j,Q=M;Step F2: releasing the data groups not used from step q to step Q in the main system buffer corresponding to the current simulation calculation, and updating the maximum capacity of the main system buffer at the current moment; wherein q∈[1~Q], Q is the total number of steps required for the simulation, q=j, Q=M;
步骤F3:判断第二数据组序列中第j个数据组的数据量是否小于等于当前时刻主系统缓冲区最大容纳量,若是,则调用第一数据组序列中的第j个数据组进入主系统缓冲区并记录所述第j个数据组的调用时间,进入步骤F4,否则,释放主系统缓冲区内的已有数据组,并返回步骤F3;Step F3: determine whether the data volume of the jth data group in the second data group sequence is less than or equal to the maximum capacity of the main system buffer at the current moment; if so, call the jth data group in the first data group sequence into the main system buffer and record the calling time of the jth data group, and enter step F4; otherwise, release the existing data group in the main system buffer and return to step F3;
步骤F4:判断j是否小于M,如果是,则令j=j+1,返回步骤F2,否则输出数据组调用时间顺序表。Step F4: Determine whether j is less than M. If so, set j=j+1 and return to step F2. Otherwise, output the data group calling time sequence table.
本申请第二方面实施例提出一种用于仿真平台的数据调用优化系统,所述系统包括:The second aspect of the present application provides a data call optimization system for a simulation platform, the system comprising:
获取模块,用于获取仿真系统进行当前仿真计算时所述调用的各数据组和所述仿真系统的步长;An acquisition module, used for acquiring each data group called when the simulation system performs current simulation calculation and the step length of the simulation system;
第一确定模块,用于根据所述仿真系统的步长确定各所述数据组的初始调用优先级指标值;A first determination module, used to determine the initial call priority index value of each of the data groups according to the step size of the simulation system;
第二确定模块,用于根据各所述数据组的初始调用优先级指标值确定所述当前仿真计算对应的数据组调用时间顺序表;A second determination module is used to determine the data group call time sequence table corresponding to the current simulation calculation according to the initial call priority index value of each data group;
调用模块,用于基于所述数据组调用时间顺序表进行各所述数据组的调用;A calling module, used for calling each of the data groups based on the data group calling time sequence table;
其中,所述各数据组是根据所述仿真计算的仿真步骤划分的。The data groups are divided according to the simulation steps of the simulation calculation.
优选的,所述系统,还包括:Preferably, the system further comprises:
排序模块,用于将所述各数据组按照所述仿真计算的步骤进行排序,形成第一数据组序列。The sorting module is used to sort the data groups according to the steps of the simulation calculation to form a first data group sequence.
进一步的,各所述数据组的初始调用优先级指标值的计算式如下:Furthermore, the calculation formula of the initial call priority index value of each data group is as follows:
式中,xi为第一数据组序列中第i数据组的初始调用优先级指标值,T为仿真系统的步长,si为第一数据组序列中第i数据组的数据量,ti为第一数据组序列中第i数据组的传输延时时长。Wherein, xi is the initial call priority index value of the i-th data group in the first data group sequence, T is the step size of the simulation system, si is the amount of data of the i-th data group in the first data group sequence, and ti is the transmission delay duration of the i-th data group in the first data group sequence.
优选的,所述第二确定模块具体用于:Preferably, the second determining module is specifically used for:
步骤E1:根据各所述数据组的初始调用优先级指标值将各所述数据组按照从小到大的顺序排序,形成第二数据组序列,令j=1,其中j为所述第二数据组序列中的第j个数据组;Step E1: sorting the data groups in ascending order according to the initial call priority index value of each data group to form a second data group sequence, and setting j=1, where j is the jth data group in the second data group sequence;
步骤E2:释放当前仿真计算对应的主系统缓冲区内步骤q至步骤Q用不到的数据组,并更新当前时刻主系统缓冲区最大容纳量;其中,q∈[1~Q],Q为仿真所需的步骤总数,q=j,Q=M;Step E2: Release the data group that is not used from step q to step Q in the main system buffer corresponding to the current simulation calculation, and update the maximum capacity of the main system buffer at the current moment; where q∈[1~Q], Q is the total number of steps required for the simulation, q=j, Q=M;
步骤E3:判断第二数据组序列中第j个数据组的数据量是否小于等于当前时刻主系统缓冲区最大容纳量,若是,则调用第一数据组序列中的第j个数据组进入主系统缓冲区并记录所述第j个数据组的调用时间,进入步骤E4,否则,释放主系统缓冲区内的已有数据组,并返回步骤E3;Step E3: determine whether the data volume of the jth data group in the second data group sequence is less than or equal to the maximum capacity of the main system buffer at the current moment; if so, call the jth data group in the first data group sequence into the main system buffer and record the calling time of the jth data group, and enter step E4; otherwise, release the existing data group in the main system buffer and return to step E3;
步骤E4:判断j是否小于M,如果是,则令j=j+1,返回步骤F2,否则输出数据组调用时间顺序表。Step E4: Determine whether j is less than M. If so, set j=j+1 and return to step F2. Otherwise, output the data group calling time sequence table.
本申请第三方面实施例提出一种电子设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如第一方面实施例所述的方法。The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the first aspect is implemented.
本申请第四方面实施例提出一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面实施例所述的方法。A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect of the present application.
本申请的实施例提供的技术方案至少带来以下有益效果:The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
本申请提出了用于仿真平台的数据调用优化方法及系统,所述方法包括:获取仿真系统进行当前仿真计算时所述调用的各数据组和所述仿真系统的步长;根据所述仿真系统的步长确定各所述数据组的初始调用优先级指标值;根据各所述数据组的初始调用优先级指标值确定所述当前仿真计算对应的数据组调用时间顺序表;基于所述数据组调用时间顺序表进行各所述数据组的调用。本申请提出的技术方案,既满足了方程计算的数据需求,同时降低了调用次数,减少了方程求解的总时间,提高了仿真的效率。The present application proposes a data call optimization method and system for a simulation platform, the method comprising: obtaining each data group called when the simulation system performs the current simulation calculation and the step length of the simulation system; determining the initial call priority index value of each data group according to the step length of the simulation system; determining the data group call time sequence table corresponding to the current simulation calculation according to the initial call priority index value of each data group; calling each data group based on the data group call time sequence table. The technical solution proposed in the present application not only meets the data requirements of equation calculation, but also reduces the number of calls, reduces the total time of equation solving, and improves the efficiency of simulation.
本申请附加的方面以及优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
本申请上述的和/或附加的方面以及优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
图1为根据本申请一个实施例提供的一种用于仿真平台的数据调用优化方法的流程图;FIG1 is a flow chart of a data call optimization method for a simulation platform provided according to an embodiment of the present application;
图2为根据本申请一个实施例提供的一种用于仿真平台的数据调用优化系统的第一种结构图;FIG2 is a first structural diagram of a data call optimization system for a simulation platform provided according to an embodiment of the present application;
图3为根据本申请一个实施例提供的一种用于仿真平台的数据调用优化系统的第二种结构图。FIG3 is a second structural diagram of a data call optimization system for a simulation platform provided according to an embodiment of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
本申请提出的用于仿真平台的数据调用优化方法及系统,所述方法包括:获取仿真系统进行当前仿真计算时所述调用的各数据组和所述仿真系统的步长;根据所述仿真系统的步长确定各所述数据组的初始调用优先级指标值;根据各所述数据组的初始调用优先级指标值确定所述当前仿真计算对应的数据组调用时间顺序表;基于所述数据组调用时间顺序表进行各所述数据组的调用。本申请提出的技术方案,既满足了方程计算的数据需求,同时降低了调用次数,减少了方程求解的总时间,提高了仿真的效率。The data call optimization method and system for the simulation platform proposed in this application include: obtaining each data group called when the simulation system performs the current simulation calculation and the step size of the simulation system; determining the initial call priority index value of each data group according to the step size of the simulation system; determining the data group call time sequence table corresponding to the current simulation calculation according to the initial call priority index value of each data group; calling each data group based on the data group call time sequence table. The technical solution proposed in this application not only meets the data requirements of equation calculation, but also reduces the number of calls, reduces the total time of equation solving, and improves the efficiency of simulation.
下面参考附图描述本申请实施例的用于仿真平台的数据调用优化方法及系统。The following describes the data call optimization method and system for a simulation platform according to an embodiment of the present application with reference to the accompanying drawings.
实施例一Embodiment 1
图1为根据本申请一个实施例提供的一种用于仿真平台的数据调用优化方法的流程图,如图1所示,所述方法包括:FIG1 is a flow chart of a data call optimization method for a simulation platform provided according to an embodiment of the present application. As shown in FIG1 , the method includes:
步骤1:获取仿真系统进行当前仿真计算时所述调用的各数据组和所述仿真系统的步长;其中,所述各数据组是根据所述仿真计算的仿真步骤划分的。Step 1: Obtain the data groups called when the simulation system performs the current simulation calculation and the step size of the simulation system; wherein the data groups are divided according to the simulation steps of the simulation calculation.
需要说明的是,所述步骤2之前还包括:It should be noted that, before step 2, the following steps are also included:
将所述各数据组按照所述仿真计算的步骤进行排序,形成第一数据组序列。The data groups are sorted according to the steps of the simulation calculation to form a first data group sequence.
步骤2:根据所述仿真系统的步长确定各所述数据组的初始调用优先级指标值;Step 2: determining the initial call priority index value of each of the data groups according to the step size of the simulation system;
在本公开实施例中,各所述数据组的初始调用优先级指标值的计算式如下:In the embodiment of the present disclosure, the calculation formula of the initial call priority index value of each data group is as follows:
式中,xi为第一数据组序列中第i数据组的初始调用优先级指标值,T为仿真系统的步长,si为第一数据组序列中第i数据组的数据量,ti为第一数据组序列中第i数据组的传输延时时长。Wherein, xi is the initial call priority index value of the i-th data group in the first data group sequence, T is the step size of the simulation system, si is the amount of data of the i-th data group in the first data group sequence, and ti is the transmission delay duration of the i-th data group in the first data group sequence.
步骤3:根据各所述数据组的初始调用优先级指标值确定所述当前仿真计算对应的数据组调用时间顺序表;Step 3: Determine the data group call time sequence table corresponding to the current simulation calculation according to the initial call priority index value of each data group;
在本公开实施例中,所述步骤3具体包括:In the embodiment of the present disclosure, step 3 specifically includes:
步骤F1:根据各所述数据组的初始调用优先级指标值将各所述数据组按照从小到大的顺序排序,形成第二数据组序列,令j=1,其中j为所述第二数据组序列中的第j个数据组;Step F1: sorting the data groups in ascending order according to the initial call priority index value of each data group to form a second data group sequence, and setting j=1, where j is the jth data group in the second data group sequence;
步骤F2:释放当前仿真计算对应的主系统缓冲区内步骤q至步骤Q用不到的数据组,并更新当前时刻主系统缓冲区最大容纳量;其中,q∈[1~Q],Q为仿真所需的步骤总数,q=j,Q=M;Step F2: releasing the data groups not used from step q to step Q in the main system buffer corresponding to the current simulation calculation, and updating the maximum capacity of the main system buffer at the current moment; wherein q∈[1~Q], Q is the total number of steps required for the simulation, q=j, Q=M;
步骤F3:判断第二数据组序列中第j个数据组的数据量是否小于等于当前时刻主系统缓冲区最大容纳量,若是,则调用第一数据组序列中的第j个数据组进入主系统缓冲区并记录所述第j个数据组的调用时间,进入步骤F4,否则,释放主系统缓冲区内的已有数据组,并返回步骤F3;Step F3: determine whether the data volume of the jth data group in the second data group sequence is less than or equal to the maximum capacity of the main system buffer at the current moment; if so, call the jth data group in the first data group sequence into the main system buffer and record the calling time of the jth data group, and enter step F4; otherwise, release the existing data group in the main system buffer and return to step F3;
步骤F4:判断j是否小于M,如果是,则令j=j+1,返回步骤F2,否则输出数据组调用时间顺序表。Step F4: Determine whether j is less than M. If so, set j=j+1 and return to step F2. Otherwise, output the data group calling time sequence table.
步骤4:基于所述数据组调用时间顺序表进行各所述数据组的调用。Step 4: Call each of the data groups based on the data group calling time sequence table.
为了更加清楚地说明本申请实施例的一种用于仿真平台的数据调用优化方法的实现流程,下面以一个具体的方法实施例进行详细说明:In order to more clearly illustrate the implementation process of a data call optimization method for a simulation platform in an embodiment of the present application, a specific method embodiment is described in detail below:
步骤1)确定本次仿真所需的方程求解分解为的总步骤数M,以及获取按照每个步骤的顺序,所需调用的数据组A1-AM,其中第i组数据的数据量记为Si,输入主系统缓冲区的最大数据容纳量SUM;Step 1) Determine the total number of steps M into which the equations required for this simulation are decomposed, and obtain the data groups A1-AM required to be called in the order of each step, where the data volume of the i-th group of data is recorded as Si, and the maximum data capacity SUM of the input main system buffer;
步骤2)通过系统自带的计时装置测量主系统和各个子系统之间的传输延时,数据组A1-AM所对应的传输延时记为t1-tM;Step 2) The transmission delay between the main system and each subsystem is measured by the timing device of the system, and the transmission delay corresponding to the data group A1-AM is recorded as t1-tM;
步骤3)令i=1;Step 3) Let i=1;
步骤4)计算数据组Ai的调用优先级指标:其中T为仿真系统的步长,单位为毫秒;Step 4) Calculate the call priority index of data group Ai: Where T is the step size of the simulation system, in milliseconds;
步骤5)判断i是否小于M,如果是,则令i=i+1,返回步骤4);如果否,则进入步骤6);Step 5) Determine whether i is less than M. If yes, set i=i+1 and return to step 4); if no, proceed to step 6);
步骤6)根据xi的大小,重新进行所有数据组的排序,小的在先,大的在后,根据顺序重新生成A1-AM;Step 6) Re-sort all data groups according to the size of xi , with the smaller ones first and the larger ones last, and regenerate A1-AM according to the order;
步骤7)令j=1;Step 7) Let j=1;
步骤8)释放主系统缓冲区内所有步骤j-M内用不到的数据组,更新此时的主缓冲区最大容纳量SUMj;Step 8) Release all data groups in the main system buffer that are not used in steps j-M, and update the maximum capacity SUMj of the main buffer at this time;
步骤9)判断Sj是否小于等于SUMj,如果是,则调用数据Aj进入主系统缓冲区,进入步骤10);如果否,则释放主系统缓冲区的所有已有数据组,重新进行步骤9);Step 9) Determine whether Sj is less than or equal to SUMj. If so, call data Aj into the main system buffer and proceed to step 10); if not, release all existing data groups in the main system buffer and repeat step 9);
步骤10)判断j是否小于M,如果是,则令j=j+1,返回步骤8);如果否,则进入步骤11);Step 10) Determine whether j is less than M. If yes, set j=j+1 and return to step 8); if no, proceed to step 11);
步骤11)数据调用结束,同时,输出此时的A1-AM,作为实际步骤调用的时间顺序表。Step 11) The data call is completed, and at the same time, A1-AM at this time is output as the time sequence table of the actual step call.
综上所述,本实施例提出的一种用于仿真平台的数据调用优化方法,通过在方程求解前,对方程的各个步骤所需要调用的数据进行扫描归类,得到了所有数据调用的时间顺序表。按照此表去依序调用各个数据,既满足了方程计算的数据需求,同时降低了调用次数,减少了方程求解的总时间,提高了仿真的效率。In summary, the data call optimization method for a simulation platform proposed in this embodiment scans and classifies the data required to be called in each step of the equation before solving the equation, and obtains a time sequence table of all data calls. According to this table, each data is called in sequence, which not only meets the data requirements of equation calculation, but also reduces the number of calls, reduces the total time of equation solving, and improves the efficiency of simulation.
实施例二Embodiment 2
图2为根据本申请一个实施例提供的一种用于仿真平台的数据调用优化系统的结构图,如图2所示,所述系统包括:FIG. 2 is a structural diagram of a data call optimization system for a simulation platform provided according to an embodiment of the present application. As shown in FIG. 2 , the system includes:
获取模块100,用于获取仿真系统进行当前仿真计算时所述调用的各数据组和所述仿真系统的步长;An acquisition module 100 is used to acquire each data group called when the simulation system performs current simulation calculation and the step length of the simulation system;
第一确定模块200,用于根据所述仿真系统的步长确定各所述数据组的初始调用优先级指标值;A first determination module 200, configured to determine an initial call priority index value of each of the data groups according to the step size of the simulation system;
第二确定模块300,用于根据各所述数据组的初始调用优先级指标值确定所述当前仿真计算对应的数据组调用时间顺序表;The second determination module 300 is used to determine the data group call time sequence table corresponding to the current simulation calculation according to the initial call priority index value of each data group;
调用模块400,用于基于所述数据组调用时间顺序表进行各所述数据组的调用;A calling module 400, configured to call each of the data groups based on the data group calling time sequence table;
其中,所述各数据组是根据所述仿真计算的仿真步骤划分的。The data groups are divided according to the simulation steps of the simulation calculation.
在本公开实施例中,如图3所示,所述系统,还包括:In the embodiment of the present disclosure, as shown in FIG3 , the system further includes:
排序模块500,用于将所述各数据组按照所述仿真计算的步骤进行排序,形成第一数据组序列。The sorting module 500 is used to sort the data groups according to the steps of the simulation calculation to form a first data group sequence.
进一步的,各所述数据组的初始调用优先级指标值的计算式如下:Furthermore, the calculation formula of the initial call priority index value of each data group is as follows:
式中,xi为第一数据组序列中第i数据组的初始调用优先级指标值,T为仿真系统的步长,si为第一数据组序列中第i数据组的数据量,ti为第一数据组序列中第i数据组的传输延时时长。Wherein, xi is the initial call priority index value of the i-th data group in the first data group sequence, T is the step size of the simulation system, si is the amount of data of the i-th data group in the first data group sequence, and ti is the transmission delay duration of the i-th data group in the first data group sequence.
在本公开实施例中,所述第二确定模块300具体用于:In the embodiment of the present disclosure, the second determining module 300 is specifically used to:
步骤E1:根据各所述数据组的初始调用优先级指标值将各所述数据组按照从小到大的顺序排序,形成第二数据组序列,令j=1,其中j为所述第二数据组序列中的第j个数据组;Step E1: sorting the data groups in ascending order according to the initial call priority index value of each data group to form a second data group sequence, and setting j=1, where j is the jth data group in the second data group sequence;
步骤E2:释放当前仿真计算对应的主系统缓冲区内步骤q至步骤Q用不到的数据组,并更新当前时刻主系统缓冲区最大容纳量;其中,q∈[1~Q],Q为仿真所需的步骤总数,q=j,Q=M;Step E2: Release the data group that is not used from step q to step Q in the main system buffer corresponding to the current simulation calculation, and update the maximum capacity of the main system buffer at the current moment; where q∈[1~Q], Q is the total number of steps required for the simulation, q=j, Q=M;
步骤E3:判断第二数据组序列中第j个数据组的数据量是否小于等于当前时刻主系统缓冲区最大容纳量,若是,则调用第一数据组序列中的第j个数据组进入主系统缓冲区并记录所述第j个数据组的调用时间,进入步骤E4,否则,释放主系统缓冲区内的已有数据组,并返回步骤E3;Step E3: determine whether the data volume of the jth data group in the second data group sequence is less than or equal to the maximum capacity of the main system buffer at the current moment; if so, call the jth data group in the first data group sequence into the main system buffer and record the calling time of the jth data group, and enter step E4; otherwise, release the existing data group in the main system buffer and return to step E3;
步骤E4:判断j是否小于M,如果是,则令j=j+1,返回步骤F2,否则输出数据组调用时间顺序表。Step E4: Determine whether j is less than M. If so, set j=j+1 and return to step F2. Otherwise, output the data group calling time sequence table.
综上所述,本实施例提出的本一种用于仿真平台的数据调用优化系统,满足了方程计算的数据需求,同时降低了调用次数,减少了方程求解的总时间,提高了仿真的效率。In summary, the data call optimization system for a simulation platform proposed in this embodiment meets the data requirements of equation calculation, while reducing the number of calls, reducing the total time for solving equations, and improving the efficiency of simulation.
实施例三Embodiment 3
为了实现上述实施例,本公开还提出一种电子设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如实施例一所述的方法。In order to implement the above embodiments, the present disclosure further proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in Embodiment 1 is implemented.
实施例四Embodiment 4
为了实现上述实施例,本公开还提出一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如实施例一所述的方法。In order to implement the above embodiments, the present disclosure further proposes a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method described in the first embodiment is implemented.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in the field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211482819.7A CN115718653B (en) | 2022-11-24 | 2022-11-24 | Data call optimization method and system for simulation platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211482819.7A CN115718653B (en) | 2022-11-24 | 2022-11-24 | Data call optimization method and system for simulation platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115718653A CN115718653A (en) | 2023-02-28 |
CN115718653B true CN115718653B (en) | 2024-05-07 |
Family
ID=85256266
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211482819.7A Active CN115718653B (en) | 2022-11-24 | 2022-11-24 | Data call optimization method and system for simulation platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115718653B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114064222A (en) * | 2020-07-31 | 2022-02-18 | 上海商汤智能科技有限公司 | Data processing method, device, computer equipment and storage medium |
CN115145708A (en) * | 2022-07-18 | 2022-10-04 | 清华大学 | System simulation task calling method and device, computer equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109937418B (en) * | 2016-11-11 | 2023-12-08 | 美商新思科技有限公司 | Waveform-based reconstruction for simulation |
-
2022
- 2022-11-24 CN CN202211482819.7A patent/CN115718653B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114064222A (en) * | 2020-07-31 | 2022-02-18 | 上海商汤智能科技有限公司 | Data processing method, device, computer equipment and storage medium |
CN115145708A (en) * | 2022-07-18 | 2022-10-04 | 清华大学 | System simulation task calling method and device, computer equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
分布式系统仿真优化技术研究;安家葆;《中国优秀硕博士论文数据库 信息科技辑》;20180315;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN115718653A (en) | 2023-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108460052B (en) | Method and device for automatically creating index and database system | |
CN114692079B (en) | A GPU batch matrix multiplication accelerator and its processing method | |
CN116225696B (en) | Method and device for tuning operator concurrency in stream processing system | |
CN118520975B (en) | Large language model training method and device, electronic equipment and storage medium | |
CN112784974B (en) | Dynamic multi-configuration CNN accelerator architecture and operation method | |
US20230394307A1 (en) | Data caching method and apparatus for multiple concurrent deep learning training tasks | |
CN112463189A (en) | Distributed deep learning multi-step delay updating method based on communication operation sparsification | |
US20230032432A1 (en) | Pruning method based on crossbar architecture and system thereof | |
CN115718653B (en) | Data call optimization method and system for simulation platform | |
CN108776698B (en) | Spark-based anti-deflection data fragmentation method | |
CN111736959B (en) | Spark task scheduling method considering data affinity under heterogeneous cluster | |
CN118535340A (en) | Deep learning model optimization method for large-scale distributed training | |
CN116611493B (en) | Hardware-aware mixed-precision quantization method and system based on greedy search | |
CN115130672B (en) | Software and hardware collaborative optimization convolutional neural network calculation method and device | |
CN115827227B (en) | Method and system for optimizing and distributing serial-parallel resources for simulation system | |
CN116126937A (en) | Job scheduling method, job scheduling device, electronic equipment and storage medium | |
CN114036886A (en) | Layout-based high fan-out net optimization method and optimization system for FPGA integrated circuit | |
CN113076332A (en) | Execution method of database precompiled query statement | |
CN116205079B (en) | Wind farm repeated design scheme screening method and system | |
CN110377601A (en) | A kind of MapReduce calculating process optimization method based on B-tree data structure | |
CN118278468B (en) | Deep neural network reasoning method and device based on database management system | |
CN117806832B (en) | A method, system, device and storage medium for improving model training speed | |
CN112732715B (en) | Data table association method, device and storage medium | |
CN114139485B (en) | Netlist device parameter calculation method | |
CN118171749A (en) | Machine learning method, system and storage medium based on scheduling algorithm |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |