Lumerical Resources 设置

Lumerical Resources 设置

referring to: Resource configuration for Lumerical solvers running with a single process

一、Process、Thread、Capacity 的含义

The guidelines shows the process on changing the multi threading settings for the Multiphysics (Finite Element IDE) solvers; CHARGE, HEAT, DGTD, FEEM, MQW and (Finite Difference IDE) solvers; RCWA and FDE.

指南展示了如何更改多线程设置,用于多物理场(有限元集成开发环境)求解器:CHARGE、HEAT、DGTD、FEEM、MQW,以及(有限差分集成开发环境)求解器:RCWA 和 FDE。

Processes
Unlike the FDTD, varFDTD and EME solvers, the above mentioned solvers run with a single MPI process. It is not possible to distribute the simulation across several machines.

进程
不同于 FDTD、varFDTD 和 EME 求解器,上述提到的求解器仅能在单个并行计算的进程上运行。所以不能将其进程拆分并发布到多台计算机上同时运行。

Threads
Running the simulation in parallel on all available cores on the local machine is set by the number of threads (see changing the thread count below) in the CAD/IDE. By default, it will try to run on all cores on the local machine.

线程
在本地机器上并行运行仿真是通过CAD/IDE中的线程数(参见下面更改线程数)设置的。默认情况下,它将尝试在本地机器上的所有核心上运行。

Capacity
Multiple runs of the solver (called “jobs”) can be run concurrently. When using the parameter sweep utility, optimization utility, or addjob/runjobs script commands. The maximum number of jobs that run concurrently is set by the Capacity field of the Resources table. For full resource utilization, it is generally best to set the total number of jobs to be a multiple of the Capacity field.

容量
可以同时运行多个求解器(称为“作业”)。在使用参数扫描工具、优化工具或 addjob/runjobs 脚本命令时,在 Resources -> Capacity 设置可以同时运行的最大作业数。为了充分利用资源,通常最好将作业总数设置为容量的倍数。

二、通过命令行运行

Run the simulation with the desired number of threads using the “-t #” argument. The “-t #” argument overrides the multithreading settings in the simulation.

通过 “-t” 可以设置想要使用的线程数,并且可以覆盖仿真软件中多线程的设置

Examples

Windows: 使用 CHARGE 进行 8 线程的仿真

cd \path_to\simulation_file\
"C:\Program Files\Lumerical\v241\bin\device-engine.exe" -t 8 "simulationfile.ldev"

Linux: 使用 HEAT 进行 4 线程的仿真

cd /path_to/simulation_file/
/opt/lumerical/v241/bin/thermal-engine -t 4 "simulationfile.ldev"

三、Resources 设置建议

仅在单个机器上运行时:

  1. 仅运行单个仿真任务时,建议 Process=1、Thread=机器最大核心数、Capacity=1
    GPU 最大核心数可以通过 Resources -> Configuration test -> Run Test -> Result 查看
  2. 同时运行多个仿真任务时,比如参数扫描,需要满足:
    Threads * Processes * Capacity <= enabled CPU cores
    此时建议尝试不同的 processes * capacity 的组合来优化总体性能

多个机器上运行时:
参照:Compute resource configuration use cases

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值