epidemic-GPU-optimization

所属分类:数值算法/人工智能
开发工具:C
文件大小:65KB
下载次数:0
上传日期:2020-12-22 21:09:55
上 传 者sh-1993
说明:  佩蒂尼卡科学中心科学项目库(2020)
(Repository for scientific project in Petnica Science Center (2020))

文件列表:
EpidemicSimulation (0, 2020-12-23)
EpidemicSimulation\EpidemicSimulation.sln (2979, 2020-12-23)
EpidemicSimulation\HelloWorld-OpenCl (0, 2020-12-23)
EpidemicSimulation\HelloWorld-OpenCl\HelloWorld-OpenCl.cpp (2462, 2020-12-23)
EpidemicSimulation\HelloWorld-OpenCl\HelloWorld-OpenCl.vcxproj (8668, 2020-12-23)
EpidemicSimulation\HelloWorld-OpenCl\HelloWorld-OpenCl.vcxproj.filters (960, 2020-12-23)
EpidemicSimulation\OpenCL (0, 2020-12-23)
EpidemicSimulation\OpenCL\inc (0, 2020-12-23)
EpidemicSimulation\OpenCL\inc\CL (0, 2020-12-23)
EpidemicSimulation\OpenCL\inc\CL\cl.h (50086, 2020-12-23)
EpidemicSimulation\OpenCL\inc\CL\cl_d3d10.h (4859, 2020-12-23)
EpidemicSimulation\OpenCL\inc\CL\cl_d3d10_ext.h (4602, 2020-12-23)
EpidemicSimulation\OpenCL\inc\CL\cl_d3d11_ext.h (4602, 2020-12-23)
EpidemicSimulation\OpenCL\inc\CL\cl_d3d9_ext.h (5492, 2020-12-23)
EpidemicSimulation\OpenCL\inc\CL\cl_ext.h (3530, 2020-12-23)
EpidemicSimulation\OpenCL\inc\CL\cl_gl.h (6715, 2020-12-23)
EpidemicSimulation\OpenCL\inc\CL\cl_gl_ext.h (2627, 2020-12-23)
EpidemicSimulation\OpenCL\inc\CL\cl_platform.h (37009, 2020-12-23)
EpidemicSimulation\OpenCL\inc\CL\opencl.h (1754, 2020-12-23)
EpidemicSimulation\OpenCL\lib (0, 2020-12-23)
EpidemicSimulation\OpenCL\lib\32-bit (0, 2020-12-23)
EpidemicSimulation\OpenCL\lib\32-bit\OpenCL.lib (20886, 2020-12-23)
EpidemicSimulation\OpenCL\lib\64-bit (0, 2020-12-23)
EpidemicSimulation\OpenCL\lib\64-bit\OpenCL.lib (19370, 2020-12-23)
EpidemicSimulation\Optimization-CPU (0, 2020-12-23)
EpidemicSimulation\Optimization-CPU\Optimization-CPU.vcxproj (8334, 2020-12-23)
EpidemicSimulation\Optimization-CPU\Optimization-CPU.vcxproj.filters (1184, 2020-12-23)
EpidemicSimulation\Optimization-CPU\inc (0, 2020-12-23)
EpidemicSimulation\Optimization-CPU\inc\func.h (1787, 2020-12-23)
EpidemicSimulation\Optimization-CPU\inc\macros.h (608, 2020-12-23)
EpidemicSimulation\Optimization-CPU\inc\person.h (2251, 2020-12-23)
EpidemicSimulation\Optimization-CPU\main.cpp (1834, 2020-12-23)
EpidemicSimulation\Optimization-CPU\src (0, 2020-12-23)
EpidemicSimulation\Optimization-CPU\src\func.cpp (10282, 2020-12-23)
EpidemicSimulation\Optimization-CPU\src\person.cpp (2682, 2020-12-23)
EpidemicSimulation\Optimization-GPU (0, 2020-12-23)
EpidemicSimulation\Optimization-GPU\Optimization-GPU.vcxproj (8954, 2020-12-23)
EpidemicSimulation\Optimization-GPU\Optimization-GPU.vcxproj.filters (1954, 2020-12-23)
... ...

# Epidemic simulation on a CPU and a GPU In this paper, an epidemic simulation model using an agent based method, based on the SIR model is examined. The way in which the algorithm of such simulation can be modified is analyzed, so that in addition to execution on the processor, the simulation can also be executed on the graphics card. The simulation model had 15 parameters that could be changed and it was tested to see what types of epidemics it could simulate. The speed of performing such a simulation on the processor and graphics card was also examined. In addition, it was concluded that simulations (performed exclusively on a graphics card) that used atomic functions proved to be extremely better than those simulations that did not use those functions. Simulations with a small number of agents were executed a little faster on the processor, and simulations with an extremely large number of agents were executed much faster on the graphics card. Also, the results of the simulations were compared, so that we can see the difference between the predictions obtained from the simulations that were performed on two different computer components. Increasing the agents in the simulation reduces the difference in the prediction of the simulations.

近期下载者

相关文件


收藏者