摘要
LBGK(Lattice Bhatnagar-Gross-Krook)模型不仅是LBM(Lattice Boltzmann Method)理论及应用上的新突破,而且是一种非常新颖的数值计算方法,适合大规模并行计算。多线程并行编程接口库(Multi-Thread Interface,MTI)充分利用多核处理器的资源来提升计算的性能,为在多核环境下方便地开发高效的并行程序提供了一个接口,大大地减轻了开发人员的负担。MTI提供了使用cache块技术划分数据集实现单任务数据并行计算,以及采用任务密取调度策略实现多任务并行处理。应用MTI实现了LBGK模型模拟斑图形成的并行计算,并获得了较高的并行效率。
LBGK(Lattice Bhatnagar-Gross-Krook) model is not only the new ground on theory and application of LBM(Lattice Boltzmann Method),but also a very novel numerical method.It applys to the massively parallel processing.With management of threads,MTI(Multi-Thread Interface) provides two main methods for parallel coding on multicore processor computer.One is data parallelism based on cache blocking,the other is a tasks schedule with working stealing.MTI provides an interface for the development of multicore environment conveniently and efficiently,greatly reducing the burden on developers.An LBGK model for pattern formation is realized by MTI,and the numerical results show that MTI is efficient and easy to use.
出处
《计算机技术与发展》
2011年第7期221-223,228,共4页
Computer Technology and Development
基金
上海市重点科学建设项目(J50103)