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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Gonzalez-Escribano, Arturo, García-Álvarez, Diego, Cámara, Jesús
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909309827284992
author Gonzalez-Escribano, Arturo
García-Álvarez, Diego
Cámara, Jesús
author_facet Gonzalez-Escribano, Arturo
García-Álvarez, Diego
Cámara, Jesús
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2409_06075
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle DNA sequence alignment: An assignment for OpenMP, MPI, and CUDA/OpenCL
Gonzalez-Escribano, Arturo
García-Álvarez, Diego
Cámara, Jesús
Distributed, Parallel, and Cluster Computing
K.3.2; D.1.3
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.
title DNA sequence alignment: An assignment for OpenMP, MPI, and CUDA/OpenCL
topic Distributed, Parallel, and Cluster Computing
K.3.2; D.1.3
url https://arxiv.org/abs/2409.06075