Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
channel_common.h
Go to the documentation of this file.
1/*
2 * Copyright 2025 Los Alamos National Laboratory, Stanford University, NVIDIA Corporation
3 * SPDX-License-Identifier: Apache-2.0
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef CHANNEL_COMMON
19#define CHANNEL_COMMON
20
21#include <vector>
22#include <cstddef>
23#include <cstdint>
24
25#include "realm/memory.h"
26
27namespace Realm {
28
29 struct Node;
30
31 void memcpy_1d(uintptr_t dst_base, uintptr_t src_base, size_t bytes);
32
33 void memcpy_2d(uintptr_t dst_base, uintptr_t dst_lstride, uintptr_t src_base,
34 uintptr_t src_lstride, size_t bytes, size_t lines);
35
36 void memcpy_3d(uintptr_t dst_base, uintptr_t dst_lstride, uintptr_t dst_pstride,
37 uintptr_t src_base, uintptr_t src_lstride, uintptr_t src_pstride,
38 size_t bytes, size_t lines, size_t planes);
39
40 void memset_1d(uintptr_t dst_base, size_t bytes, const void *fill_data,
41 size_t fill_size);
42
43 void memset_2d(uintptr_t dst_base, uintptr_t dst_lstride, size_t bytes, size_t lines,
44 const void *fill_data, size_t fill_size);
45
46 void memset_3d(uintptr_t dst_base, uintptr_t dst_lstride, uintptr_t dst_pstride,
47 size_t bytes, size_t lines, size_t planes, const void *fill_data,
48 size_t fill_size);
49
50 void enumerate_local_cpu_memories(const Node *node, std::vector<Memory> &mems);
51
52}; // namespace Realm
53
54#endif
Definition activemsg.h:38
void memcpy_2d(uintptr_t dst_base, uintptr_t dst_lstride, uintptr_t src_base, uintptr_t src_lstride, size_t bytes, size_t lines)
void memcpy_1d(uintptr_t dst_base, uintptr_t src_base, size_t bytes)
void memset_1d(uintptr_t dst_base, size_t bytes, const void *fill_data, size_t fill_size)
void memset_3d(uintptr_t dst_base, uintptr_t dst_lstride, uintptr_t dst_pstride, size_t bytes, size_t lines, size_t planes, const void *fill_data, size_t fill_size)
void enumerate_local_cpu_memories(const Node *node, std::vector< Memory > &mems)
void memcpy_3d(uintptr_t dst_base, uintptr_t dst_lstride, uintptr_t dst_pstride, uintptr_t src_base, uintptr_t src_lstride, uintptr_t src_pstride, size_t bytes, size_t lines, size_t planes)
void memset_2d(uintptr_t dst_base, uintptr_t dst_lstride, size_t bytes, size_t lines, const void *fill_data, size_t fill_size)
Definition runtime_impl.h:88