arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.06075cs.DC
收藏

DNA序列比对:一项面向OpenMP、MPI和CUDA/OpenCL的作业

DNA sequence alignment: An assignment for OpenMP, MPI, and CUDA/OpenCL

Arturo Gonzalez-Escribano, Diego García-Álvarez, Jesús Cámara

AI总结:

本文介绍一项并行计算课程作业,以多模式精确DNA序列比对的暴力解法为载体,训练学生用OpenMP、MPI及CUDA/OpenCL实现并行化,并覆盖竞态条件、归约、通信和推测计算终止等关键概念。

摘要:

我们介绍了一项贯穿整个并行计算课程的作业。自2017/2018学年以来,我们每个学年都会提出一个不同的问题,以展示如何使用不同的并行编程模型来处理同一个计算问题的各种方法。这些问题被设计为可分别使用OpenMP进行共享内存编程、MPI进行分布式内存编程,以及CUDA或OpenCL进行GPU编程来实现并行化。今年选定的问题实现了一种针对多个模式的精确DNA序列比对的暴力解法。该程序在一条很长的DNA序列中搜索多个核苷酸字符串的精确匹配。其串行实现被设计得清晰易懂,便于学生理解,同时提供了许多并行化和优化机会。本作业涉及许多学生在实际场景中难以应用的关键概念:竞态条件、归约、集合操作和点对点通信。它还涵盖了伪随机序列的并行生成问题,以及在找到匹配时通知并停止推测性计算的策略。本作业作为一项练习,可巩固基础知识,并为学生学习更复杂的并行计算概念和结构做好准备。它已成功作为计算机工程学位项目三年级并行计算课程的实践作业实施。本作业及本系列以往作业的支持材料均已公开提供。

英文摘要:

We present an assignment for a full Parallel Computing course. Since 2017/2018, we have proposed a different problem each academic year to illustrate various methodologies for approaching the same computational problem using different parallel programming models. They are designed to be parallelized using shared-memory programming with OpenMP, distributed-memory programming with MPI, and GPU programming with CUDA or OpenCL. The problem chosen for this year implements a brute-force solution for exact DNA sequence alignment of multiple patterns. The program searches for exact coincidences of multiple nucleotide strings in a long DNA sequence. The sequential implementation is designed to be clear and understandable to students while offering many opportunities for parallelization and optimization. This assignment addresses key concepts many students find difficult to apply in practical scenarios: race conditions, reductions, collective operations, and point-to-point communications. It also covers the problem of parallel generation of pseudo-random sequences and strategies to notify and stop speculative computations when matches are found. This assignment serves as an exercise that reinforces basic knowledge and prepares students for more complex parallel computing concepts and structures. It has been successfully implemented as a practical assignment in a Parallel Computing course in the third year of a Computer Engineering degree program. Supporting materials for this and previous assignments in this series are publicly available.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑