DFT-FE 1.1.0-pre
Density Functional Theory With Finite-Elements
Loading...
Searching...
No Matches
MemoryTransferKernelsDevice.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (c) 2017-2025 The Regents of the University of Michigan and DFT-FE
4// authors.
5//
6// This file is part of the DFT-FE code.
7//
8// The DFT-FE code is free software; you can use it, redistribute
9// it, and/or modify it under the terms of the GNU Lesser General
10// Public License as published by the Free Software Foundation; either
11// version 2.1 of the License, or (at your option) any later version.
12// The full text of the license can be found in the file LICENSE at
13// the top level of the DFT-FE distribution.
14//
15// ---------------------------------------------------------------------
16
17/*
18 * @author Sambit Das
19 */
20
21#ifndef dftfeMemoryTransferKernelsDevice_h
22#define dftfeMemoryTransferKernelsDevice_h
23
24#ifdef DFTFE_WITH_DEVICE
25# include <TypeConfig.h>
26
27namespace dftfe
28{
29 namespace utils
30 {
31 namespace memoryTransferKernelsDevice
32 {
33 /**
34 * @brief Copy array from device to host
35 * @param count The memory size in bytes of the array
36 */
37 void
38 deviceMemcpyD2H(void *dst, const void *src, std::size_t count);
39
40 /**
41 * @brief Copy array from device to device
42 * @param count The memory size in bytes of the array
43 */
44 void
45 deviceMemcpyD2D(void *dst, const void *src, std::size_t count);
46
47 /**
48 * @brief Copy array from host to device
49 * @param count The memory size in bytes of the array
50 */
51 void
52 deviceMemcpyH2D(void *dst, const void *src, std::size_t count);
53
54 }; // namespace memoryTransferKernelsDevice
55 } // namespace utils
56} // namespace dftfe
57
58#endif // DFTFE_WITH_DEVICE
59#endif // dftfeMemoryTransferKernels_h
Definition Cell.h:36
Definition pseudoPotentialToDftfeConverter.cc:34