Neko
1.99.1
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
comm_nvshmem.cu
Go to the documentation of this file.
1
2
#ifdef HAVE_NVSHMEM
3
4
#include <nvshmemx.h>
5
#include <
comm/comm.h
>
6
7
extern
"C"
{
8
12
void
neko_comm_nvshmem_init
(){
13
14
nvshmemx_init_attr_t
attr
;
15
attr
.mpi_comm = &
NEKO_COMM
;
16
if
(
nvshmemx_init_status
() ==
NVSHMEM_STATUS_NOT_INITIALIZED
)
17
{
18
nvshmemx_init_attr
(
NVSHMEMX_INIT_WITH_MPI_COMM
, &
attr
);
19
}
20
}
21
22
void
neko_comm_nvshmem_finalize
() {
23
nvshmem_finalize
();
24
}
25
26
27
}
28
29
#endif
comm.h
NEKO_COMM
MPI_Comm NEKO_COMM
Definition
comm_wrapper.c:10
dirichlet_apply_scalar_kernel
__global__ void dirichlet_apply_scalar_kernel(const int *__restrict__ msk, T *__restrict__ x, const T g, const int m)
Definition
dirichlet_kernel.h:42
src
comm
bcknd
device
cuda
comm_nvshmem.cu
Generated on Mon Sep 1 2025 03:49:14 for Neko by
1.9.8