Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
kokkos_interop.h
Go to the documentation of this file.
1/*
2 * Copyright 2025 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// Realm+Kokkos interop support
19
20#ifndef REALM_KOKKOS_INTEROP_H
21#define REALM_KOKKOS_INTEROP_H
22
23#include "realm/realm_config.h"
24#include "realm/proc_impl.h"
25
26#include <vector>
27
28namespace Realm {
29
30 namespace KokkosInterop {
31
35
36 // initializes the kokkos runtime, using the threads from local processors
37 // to initialize the various kokkos execution spaces
38 void kokkos_initialize(const std::vector<ProcessorImpl *> &local_procs);
39
40 void kokkos_finalize(const std::vector<ProcessorImpl *> &local_procs);
41
42 }; // namespace KokkosInterop
43
44}; // namespace Realm
45
46#endif
bool is_kokkos_openmp_enabled(void)
void kokkos_finalize(const std::vector< ProcessorImpl * > &local_procs)
bool is_kokkos_cuda_enabled(void)
bool is_kokkos_hip_enabled(void)
void kokkos_initialize(const std::vector< ProcessorImpl * > &local_procs)
Definition activemsg.h:38