X-Git-Url: http://nitlanguage.org diff --git a/lib/mpi.nit b/lib/mpi.nit index 01137f7..5696d32 100644 --- a/lib/mpi.nit +++ b/lib/mpi.nit @@ -26,8 +26,8 @@ # Since this module is a thin wrapper around OpenMPI, in case of missing # documentation, you can refer to https://www.open-mpi.org/doc/v1.8/. module mpi is - c_compiler_option(exec("mpicc", "-showme:compile")) - c_linker_option(exec("mpicc", "-showme:link")) + cflags exec("mpicc", "-showme:compile") + ldflags exec("mpicc", "-showme:link") end import c @@ -85,7 +85,7 @@ class MPI fun send(data: nullable Serializable, dest: Rank, tag: Tag, comm: Comm) do # Serialize data - var stream = new StringOStream + var stream = new StringWriter var serializer = new JsonSerializer(stream) serializer.serialize(data)