关于Devito

2019-03-24  本文已影响0人  jjx323

在使用Devito中遇到一个错误 compiler.py 文件的403行中有一个参数 sleep_delay 但函数 compile_from_string() 并没有这个参数??

394    with warnings.catch_warnings():
395        warnings.simplefilter('ignore')
396
397        tic = time()
398        # Spinlock in case of MPI
399        sleep_delay = 0 if configuration['mpi'] else 1
400        _, _, _, recompiled = compile_from_string(compiler, target, code, src_file,
401                                                 cache_dir=cache_dir,
402                                                 debug=configuration['debug-compiler'],  
403                                                 sleep_delay=sleep_delay)
上一篇 下一篇

猜你喜欢

热点阅读