Neko 1.99.11
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
7extern "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
MPI_Comm NEKO_COMM