DNA sequence alignment: An assignment for OpenMP, MPI, and CUDA/OpenCL
<|reference_start|>DNA sequence alignment: An assignment for OpenMP, MPI, and CUDA/OpenCL: 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.<|reference_end|>
@article{gonzalez-escribano2024dna,
    title={DNA sequence alignment: An assignment for OpenMP, MPI, and CUDA/OpenCL},
    author={Arturo Gonzalez-Escribano, Diego Garc'ia-'Alvarez, Jes'us C'amara
  (Universidad de Valladolid, Spain)},
    journal={arXiv preprint arXiv:2409.06075},
    year={2024},
    archivePrefix={arXiv},
    eprint={2409.06075},
    primaryClass={cs.DC}
}