Program Listing for File SyclCopyOperation.hpp¶
↰ Return to documentation for file (umpire/op/SyclCopyOperation.hpp
)
//////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2016-20, Lawrence Livermore National Security, LLC and Umpire
// project contributors. See the COPYRIGHT file for details.
//
// SPDX-License-Identifier: (MIT)
//////////////////////////////////////////////////////////////////////////////
#ifndef UMPIRE_SyclCopyOperation_HPP
#define UMPIRE_SyclCopyOperation_HPP
#include "umpire/op/MemoryOperation.hpp"
namespace umpire {
namespace op {
/*!
* \brief Copy operation to move data between two GPU addresses.
*/
class SyclCopyOperation : public MemoryOperation {
public:
/*!
* @copybrief MemoryOperation::transform
*
* Uses DPCPP's USM memcpy to move data when both src_ptr and dst_ptr are on
* Intel GPUs.
*
* @copydetails MemoryOperation::transform
*/
void transform(void* src_ptr, void** dst_ptr,
umpire::util::AllocationRecord* src_allocation,
umpire::util::AllocationRecord* dst_allocation,
std::size_t length);
};
} // end of namespace op
} // end of namespace umpire
#endif // UMPIRE_SyclCopyOperation_HPP