Cargando…
Function Timing and Optimization: Numba Implementations for the BLonD Code
This report delves into implementing Numba functions and examines their efficiency. The focus is on evaluating Numba implementations as potential replacements for C++ functions within the BLonD Code. By leveraging Numba's just-in-time compilation for Python, we analyze performance gains and con...
Autor principal: | |
---|---|
Lenguaje: | eng |
Publicado: |
2023
|
Materias: | |
Acceso en línea: | http://cds.cern.ch/record/2871506 |
_version_ | 1780978539726635008 |
---|---|
author | Perovic, Helena |
author_facet | Perovic, Helena |
author_sort | Perovic, Helena |
collection | CERN |
description | This report delves into implementing Numba functions and examines their efficiency. The focus is on evaluating Numba implementations as potential replacements for C++ functions within the BLonD Code. By leveraging Numba's just-in-time compilation for Python, we analyze performance gains and consider the feasibility of transitioning from established C++ functions. Through meticulous function timing, profiling, and benchmarking, this project aims to inform decisions regarding performance optimization in scientific computing. The results offer insights into the interplay between ease of implementation and computational performance. Notably, the speedup factor of C++ varies from 0.9 (sometimes slower than Numba) to 1.6, demonstrating the versatility and competitive nature of Numba in optimizing code execution. |
id | cern-2871506 |
institution | Organización Europea para la Investigación Nuclear |
language | eng |
publishDate | 2023 |
record_format | invenio |
spelling | cern-28715062023-09-18T18:54:08Zhttp://cds.cern.ch/record/2871506engPerovic, HelenaFunction Timing and Optimization: Numba Implementations for the BLonD CodeComputing and ComputersThis report delves into implementing Numba functions and examines their efficiency. The focus is on evaluating Numba implementations as potential replacements for C++ functions within the BLonD Code. By leveraging Numba's just-in-time compilation for Python, we analyze performance gains and consider the feasibility of transitioning from established C++ functions. Through meticulous function timing, profiling, and benchmarking, this project aims to inform decisions regarding performance optimization in scientific computing. The results offer insights into the interplay between ease of implementation and computational performance. Notably, the speedup factor of C++ varies from 0.9 (sometimes slower than Numba) to 1.6, demonstrating the versatility and competitive nature of Numba in optimizing code execution.CERN-STUDENTS-Note-2023-142oai:cds.cern.ch:28715062023-09-18 |
spellingShingle | Computing and Computers Perovic, Helena Function Timing and Optimization: Numba Implementations for the BLonD Code |
title | Function Timing and Optimization: Numba Implementations for the BLonD Code |
title_full | Function Timing and Optimization: Numba Implementations for the BLonD Code |
title_fullStr | Function Timing and Optimization: Numba Implementations for the BLonD Code |
title_full_unstemmed | Function Timing and Optimization: Numba Implementations for the BLonD Code |
title_short | Function Timing and Optimization: Numba Implementations for the BLonD Code |
title_sort | function timing and optimization: numba implementations for the blond code |
topic | Computing and Computers |
url | http://cds.cern.ch/record/2871506 |
work_keys_str_mv | AT perovichelena functiontimingandoptimizationnumbaimplementationsfortheblondcode |