Bohrium.rb - The Ruby front end
Research output: Chapter in Book/Report/Conference proceeding › Article in proceedings › Research › peer-review
The acceptance of Ruby in the scientific community lags a bit behind, partly because it is missing a good library for linear algebra and vector programming. It has a matrix class in its standard library, but its execution tends to be rather slow. Only a couple of actual scientific computing libraries like NumPy for Python exist for Ruby. In this paper we introduce a new library called Bohrium.rb. Bohrium.rb acts as a front end for the Bohrium framework, which generates and runs JIT-compiled OpenMP/OpenCL kernels. It currently supports Python/NumPy and C++, however as it is built of processes communicating hierarchically to each other, we can replace the front ends with new ones. This new Ruby front end is described with examples and is then compared to the standard library and an already established Ruby library Numo/Narray, where Bohrium.rb seems to be faster for still larger matrix calculations. This is also the trend we have seen in similar areas with Bohrium, being faster once its overhead has been amortized.
Original language | English |
---|---|
Title of host publication | Communicating Process Architectures 2017 and 2018, WoTUG-39 and WoTUG-40 - Proceedings of CPA 2017 (WoTUG-39) and Proceedings of CPA 2018 (WoTUG-40) |
Editors | Jan Baekgaard Pedersen, Kevin Chalmers, Jan F. Broenink, Brian Vinter, Kevin Vella, Peter H. Welch, Marc L. Smith, Kenneth Skovhede |
Number of pages | 12 |
Publisher | IMIA and IOS Press |
Publication date | 2019 |
Pages | 335-346 |
ISBN (Electronic) | 9781614999485 |
DOIs | |
Publication status | Published - 2019 |
Event | 39th WoTUG Conference on Communicating Process Architectures, CPA 2017 and 40th WoTUG Conference on Communicating Process Architectures, CPA 2018 - Dresden, Germany Duration: 19 Aug 2018 → 22 Aug 2018 |
Conference
Conference | 39th WoTUG Conference on Communicating Process Architectures, CPA 2017 and 40th WoTUG Conference on Communicating Process Architectures, CPA 2018 |
---|---|
Land | Germany |
By | Dresden |
Periode | 19/08/2018 → 22/08/2018 |
Series | Concurrent Systems Engineering Series |
---|---|
Volume | 70 |
ISSN | 1383-7575 |
- Bohrium, JIT-compile, OpenCL, OpenMP, Parallel computing, Ruby
Research areas
ID: 241090488