Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations
USMPtrHolder.hpp File Reference

This file contains the declaration of the USMPtrHolder class. More...

#include "shambase/ptr.hpp"
#include "shambackends/DeviceScheduler.hpp"
#include <memory>
#include <utility>
+ Include dependency graph for USMPtrHolder.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sham::USMPtrHolder< target >
 Class for holding a USM pointer. More...
 

Namespaces

namespace  sham
 namespace for backends this one is named only sham since shambackends is too long to write
 

Enumerations

enum  sham::USMKindTarget { sham::device , sham::shared , sham::host }
 Enum listing the different types of USM pointers allocations. More...
 

Detailed Description

This file contains the declaration of the USMPtrHolder class.

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

The USMPtrHolder class is a smart pointer that manages the memory allocated using SYCL unified shared memory (USM). It provides a way to safely allocate, use, and deallocate memory in USM.

Definition in file USMPtrHolder.hpp.