Managing heterogeneous device memory using C++17 memory resources. Issue 1 (1st February 2023)
- Record Type:
- Journal Article
- Title:
- Managing heterogeneous device memory using C++17 memory resources. Issue 1 (1st February 2023)
- Main Title:
- Managing heterogeneous device memory using C++17 memory resources
- Authors:
- Swatman, S N
Krasznahorkay, A
Gessinger, P - Abstract:
- Abstract: Programmers using the C++ programming language are increasingly taught to manage memory implicitly through containers provided by the C++ standard library. However, heterogeneous programming platforms often require explicit allocation and deallocation of memory. This discrepancy in memory management strategies can be daunting and problematic for C++ developers who are not already familiar with heterogeneous programming. The C++17 standard introduces the concept of memory resources, which allow the user to control how standard library containers allocate memory; we believe that this addition to the C++17 standard is a powerful tool towards the unification of memory management for heterogeneous systems with best-practice C++ development. In this paper, we present vecmem, a library of memory resources which allows efficient and user-friendly allocation of memory on CUDA, HIP, and SYCL devices through standard C++ containers. We investigate the design and use cases of such a library, the potential performance gains over naive memory allocation, and the limitations of this memory allocation model.
- Is Part Of:
- Journal of physics. Volume 2438:Issue 1(2023)
- Journal:
- Journal of physics
- Issue:
- Volume 2438:Issue 1(2023)
- Issue Display:
- Volume 2438, Issue 1 (2023)
- Year:
- 2023
- Volume:
- 2438
- Issue:
- 1
- Issue Sort Value:
- 2023-2438-0001-0000
- Page Start:
- Page End:
- Publication Date:
- 2023-02-01
- Subjects:
- Physics -- Congresses
530.5 - Journal URLs:
- http://www.iop.org/EJ/journal/1742-6596 ↗
http://ioppublishing.org/ ↗ - DOI:
- 10.1088/1742-6596/2438/1/012050 ↗
- Languages:
- English
- ISSNs:
- 1742-6588
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 5036.223000
British Library DSC - BLDSS-3PM
British Library HMNTS - ELD Digital store - Ingest File:
- 26023.xml