你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Corrected work dict for MPI tasks.
这个提交包含在:
@@ -109,11 +109,17 @@ class MPIContext(Context):
|
|||||||
self.rank = self.comm.rank
|
self.rank = self.comm.rank
|
||||||
self.MPIExecutor = MPIExecutor
|
self.MPIExecutor = MPIExecutor
|
||||||
|
|
||||||
def _run_model(self, i):
|
def _run_model(self, **work):
|
||||||
"""Process for running a single model."""
|
"""Process for running a single model.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
work (dict): contains any additional information that is passed to
|
||||||
|
MPI workers. By default only model number (i) is
|
||||||
|
used.
|
||||||
|
"""
|
||||||
|
|
||||||
# Create configuration for model
|
# Create configuration for model
|
||||||
config.model_num = i
|
config.model_num = work['i']
|
||||||
model_config = config.ModelConfig()
|
model_config = config.ModelConfig()
|
||||||
# Set GPU deviceID according to worker rank
|
# Set GPU deviceID according to worker rank
|
||||||
if config.sim_config.general['cuda']:
|
if config.sim_config.general['cuda']:
|
||||||
|
在新工单中引用
屏蔽一个用户