دورية أكاديمية
Influence of data amount, data type and implementation packages in GPU coding
العنوان: | Influence of data amount, data type and implementation packages in GPU coding |
---|---|
المؤلفون: | Peng Xu, Ming-Yan Sun, Yin-Jun Gao, Tai-Jiao Du, Jin-Ming Hu, Jun-Jie Zhang |
المصدر: | Array, Vol 16, Iss , Pp 100261- (2022) |
بيانات النشر: | Elsevier, 2022. |
سنة النشر: | 2022 |
المجموعة: | LCC:Computer engineering. Computer hardware LCC:Electronic computers. Computer science |
مصطلحات موضوعية: | CUDA, Numba, CuPy, Burgers’ equation, GPU coding, Computer engineering. Computer hardware, TK7885-7895, Electronic computers. Computer science, QA75.5-76.95 |
الوصف: | Graphic Processing Units (GPUs) are becoming popular in computational physics. Seeing the increasing trend of using GPUs in the physics community, we provide a comparison of the two major packages Numba and CuPy for GPU coding in Python language. We have discussed the influence of the data amount and data type on the performance of the GPU code. The data transferring time from GPU to CPU and its influence on the total execution time has also been analyzed. We find that when the grid numbers reaches 107, Numba will be faster than CuPy. Meanwhile, there is no noticeable difference in the data transmission speed between Numba and CuPy. Setting the data types as single-precision in Numba programs can improve the computation time by at least 20%. |
نوع الوثيقة: | article |
وصف الملف: | electronic resource |
اللغة: | English |
تدمد: | 2590-0056 |
Relation: | http://www.sciencedirect.com/science/article/pii/S2590005622000947; https://doaj.org/toc/2590-0056 |
DOI: | 10.1016/j.array.2022.100261 |
URL الوصول: | https://doaj.org/article/15b10f855cc545d4b3f21c74730c2382 |
رقم الأكسشن: | edsdoj.15b10f855cc545d4b3f21c74730c2382 |
قاعدة البيانات: | Directory of Open Access Journals |
تدمد: | 25900056 |
---|---|
DOI: | 10.1016/j.array.2022.100261 |