ct2rs 0.9.19

Rust bindings for OpenNMT/CTranslate2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <mpi.h>

#ifdef CT2_WITH_CUDA_DYNAMIC_LOADING
extern struct ompi_predefined_datatype_t* stub_mpi_datatype_null;
#define STUB_MPI_DATATYPE_NULL OMPI_PREDEFINED_GLOBAL(MPI_Datatype, *stub_mpi_datatype_null)

extern struct ompi_predefined_datatype_t* stub_ompi_mpi_byte;
#define STUB_MPI_BYTE OMPI_PREDEFINED_GLOBAL(MPI_Datatype, *stub_ompi_mpi_byte)

extern struct ompi_predefined_communicator_t* stub_ompi_mpi_comm_world;
#define STUB_MPI_COMM_WORLD OMPI_PREDEFINED_GLOBAL(MPI_Comm, *stub_ompi_mpi_comm_world)
#else
#define STUB_MPI_DATATYPE_NULL MPI_DATATYPE_NULL
#define STUB_MPI_BYTE MPI_BYTE
#define STUB_MPI_COMM_WORLD MPI_COMM_WORLD
#endif