Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想运行并行多次运行 ncverilog。
通常,我们使用这样的 ncverilog 运行脚本。
Run.scr- ncveriog blar~blar~
但这是立即运行的。这意味着如果我想运行 100 个脚本,我必须在前一个脚本结束后运行新的。但我想同时运行 100 个脚本。
如何同时运行脚本?
利用GNU Parallel
GNU Parallel
parallel ncverilog bla bla
通常,这将ncverilogs与 CPU 内核的数量一样多地并行运行,但您可以添加-j 25,例如,如果您特别希望 25 个并行运行。
ncverilogs
-j 25
如果您需要提供许多不同的参数,只需创建一个循环或脚本来生成参数并将作业列表输入GNU Parallel如下:
for i in {0..99}; do echo ncverilog $i <and some other parameters> done | parallel -j 25
例子
文档