Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Namespaces | Functions
USMBufferInterop.hpp File Reference
#include "shambackends/math.hpp"
#include "shambackends/sycl.hpp"
#include "shambackends/sycl_utils.hpp"
#include "shamcomm/logs.hpp"
+ Include dependency graph for USMBufferInterop.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Functions

template<class T >
std::vector< sycl::event > sham::usmbuffer_memcpy (sycl::queue &queue, sycl::buffer< T > &src, T *dest, u64 count)
 perform a copy from a buffer to a USM pointer
 
template<class T >
std::vector< sycl::event > sham::usmbuffer_memcpy (sycl::queue &queue, const T *src, sycl::buffer< T > &dest, u64 count)
 perform a copy from a USM pointer to a buffer
 
template<class T >
std::vector< sycl::event > sham::usmbuffer_memcpy_discard (sycl::queue &queue, const T *src, sycl::buffer< T > &dest, u64 count)
 perform a copy from a USM pointer to a buffer (and assume discard write for the buffer)
 

Detailed Description

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

Definition in file USMBufferInterop.hpp.