Page 21 - 《软件学报》2025年第12期
P. 21

软件学报 ISSN 1000-9825, CODEN RUXUEW                                        E-mail: jos@iscas.ac.cn
                 2025,36(12):5402−5422 [doi: 10.13328/j.cnki.jos.007407] [CSTR: 32375.14.jos.007407]  http://www.jos.org.cn
                 ©中国科学院软件研究所版权所有.                                                          Tel: +86-10-62562563



                                                                                        *
                 swJulia: 面向新一代神威超级计算机的                          Julia  语言编译系统

                 沈    莉  1 ,    周文浩  1 ,    王    飞  3 ,    李    斌  2 ,    谭    坚  1 ,    商红慧  1 ,    安    虹  1 ,    漆锋滨  2


                 1
                  (中国科学技术大学, 安徽 合肥 230026)
                 2
                  (江南计算技术研究所, 江苏 无锡 214083)
                 3
                  (清华大学, 北京 100084)
                 通信作者: 漆锋滨, E-mail: qifb116@sina.com

                 摘 要: 随着异构融合体系结构在高性能计算领域的普及, 挖掘其潜能并探索新的应用构建策略变得至关重要. 传
                 统的静态编译方法已无法满足复杂计算需求, 动态编程语言因其灵活性和高效性而备受瞩目. Julia 是一种现代的
                 高性能动态编程语言, 其基于即时编译机制, 在科学计算等领域表现出色. 结合申威异构众核架构特点, 构建
                 ORCJIT  编译引擎并提出了动态模式下的片上存储管理方法, 并以此为基础实现针对新一代神威超级计算机的
                 Julia 动态语言编译器    swJulia. 其不仅继承了   Julia 编译器的灵活性, 同时还有效支持了          SACA  众核编程模型及运
                 行时封装. 利用    swJulia 编译系统, 成功在新一代神威超级计算机上部署了              NNQS-Transformer 量子化学模拟器, 并
                 在多个维度验证了       swJulia 的好用性和高效性. 实验结果显示, swJulia 在单线程基准测试和众核加速上性能卓越,
                 并能够有效支撑      NNQS-Transformer 量子化学模拟器的超大规模可扩展并行模拟.
                 关键词: Julia 编译器; 神威超级计算机; 动态链接; 即时编译; 量子化学模拟
                 中图法分类号: TP314

                 中文引用格式: 沈莉, 周文浩, 王飞, 李斌, 谭坚, 商红慧, 安虹, 漆锋滨. swJulia: 面向新一代神威超级计算机的Julia语言编译系统.
                 软件学报, 2025, 36(12): 5402–5422. http://www.jos.org.cn/1000-9825/7407.htm
                 英文引用格式: Shen  L,  Zhou  WH,  Wang  F,  Li  B,  Tan  J,  Shang  HH,  An  H,  Qi  FB.  swJulia:  Julia  Compilation  System  for  New
                 Generation Sunway Supercomputer. Ruan Jian Xue Bao/Journal of Software, 2025, 36(12): 5402–5422 (in Chinese). http://www.jos.org.
                 cn/1000-9825/7407.htm

                 swJulia: Julia Compilation System for New Generation Sunway Supercomputer
                                                     2
                                               3
                                     1
                                                                                      1
                       1
                                                              1
                                                                             1
                 SHEN Li , ZHOU Wen-Hao , WANG Fei , LI Bin , TAN Jian , SHANG Hong-Hui , AN Hong , QI Feng-Bin 2
                 1
                 (University of Science and Technology of China, Hefei 230026, China)
                 2
                 (Jiangnan Institute of Computing Technology, Wuxi 214083, China)
                 3
                 (Tsinghua University, Beijing 100084, China)
                 Abstract:  With  the  increasing  adoption  of  heterogeneous  integrated  architectures  in  high-performance  computing,  it  has  become  essential
                 to  harness  their  potential  and  explore  new  strategies  for  application  development.  Traditional  static  compilation  methodologies  are  no
                 longer  sufficient  to  meet  the  complex  computational  demands.  Therefore,  dynamic  programming  languages,  known  for  their  flexibility  and
                 efficiency,  are  gaining  prominence.  Julia,  a  modern  high-performance  language  characterized  by  its  JIT  compilation  mechanism,  has
                 demonstrated  significant  performance  in  fields  such  as  scientific  computing.  Targeting  the  unique  features  of  the  Sunway  heterogeneous
                 many-core  architecture,  the  ORCJIT  engine  is  introduced,  along  with  an  on-chip  storage  management  approach  specifically  designed  for
                 dynamic  modes.  Based  on  these  advancements,  swJulia  is  developed  as  a  Julia  dynamic  language  compiler  tailored  for  the  new  generation
                 of  the  Sunway  supercomputer.  This  compiler  not  only  inherits  the  flexibility  of  the  Julia  compiler  but  also  provides  robust  support  for  the
                 SACA  many-core  programming  model  and  runtime  encapsulation.  By  utilizing  the  swJulia  compilation  system,  the  deployment  of  the
                 NNQS-Transformer  quantum  chemistry  simulator  on  the  new  generation  of  the  Sunway  supercomputer  is  successfully  achieved.


                 *    基金项目: 国家重点研发计划  (2023YFB3001500)
                  收稿时间: 2024-10-20; 修改时间: 2024-12-14; 采用时间: 2025-02-11; jos 在线出版时间: 2025-06-11
                  CNKI 网络首发时间: 2025-06-11
   16   17   18   19   20   21   22   23   24   25   26