I would like to run parallel multiple run ncverilog.
我想并行运行多个ncverilog。
Normally, we use ncverilog run script like this.
通常,我们使用ncverilog这样的运行脚本。
Run.scr-
ncveriog blar~blar~
But this is run at once. It means that if I want to run 100 scripts , I have to run new after previous script end. But I want to run at simultant 100 script.
但这是同时运行的。这意味着如果我想运行100个脚本,我必须在之前的脚本结束后运行新的。但是我想在模拟100脚本上运行。
How do I run the scripts at simultant?
如何在simultant中运行脚本?
1 个解决方案
#1
2
Use GNU Parallel
使用GNU平行
parallel ncverilog bla bla
Normally, that will run as many ncverilogs
in parallel as you have CPU cores, but you can add -j 25
, for example, if you specifically want 25 to run in parallel.
通常,当您有CPU内核时,它将并行运行尽可能多的ncverilog,但是如果您特别想要25并行运行,您可以添加- j25。
If you need to supply lots of different parameters, just make a loop or script that generates the parameters and feeds a list of jobs into GNU Parallel
like this:
如果您需要提供许多不同的参数,只需创建一个循环或脚本,生成参数并将作业列表提供给GNU Parallel,如下所示:
for i in {0..99}; do
echo ncverilog $i <and some other parameters>
done | parallel -j 25
例子
例子
文档
#1
2
Use GNU Parallel
使用GNU平行
parallel ncverilog bla bla
Normally, that will run as many ncverilogs
in parallel as you have CPU cores, but you can add -j 25
, for example, if you specifically want 25 to run in parallel.
通常,当您有CPU内核时,它将并行运行尽可能多的ncverilog,但是如果您特别想要25并行运行,您可以添加- j25。
If you need to supply lots of different parameters, just make a loop or script that generates the parameters and feeds a list of jobs into GNU Parallel
like this:
如果您需要提供许多不同的参数,只需创建一个循环或脚本,生成参数并将作业列表提供给GNU Parallel,如下所示:
for i in {0..99}; do
echo ncverilog $i <and some other parameters>
done | parallel -j 25
例子
例子
文档