From: Martin Quinson Date: Fri, 26 May 2017 13:54:35 +0000 (+0200) Subject: kill a useless file X-Git-Tag: v3.16~208 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/0efe3d607e77e439af8019c721b20a18b1787884?hp=3e7a6085312ea8e0cc7b71adaef4074db9b15892 kill a useless file --- diff --git a/include/smpi/smpi.h b/include/smpi/smpi.h index 55d2e81b39..11c67ee7de 100644 --- a/include/smpi/smpi.h +++ b/include/smpi/smpi.h @@ -989,4 +989,17 @@ if(!name) { \ SG_END_DECL() + +/* C++ declarations for shared_malloc */ +#ifdef __cplusplus +#include + +XBT_PUBLIC(int) smpi_is_shared(void* ptr, std::vector>& private_blocks, size_t* offset); + +std::vector> shift_and_frame_private_blocks(const std::vector> vec, + size_t offset, size_t buff_size); +std::vector> merge_private_blocks(std::vector> src, + std::vector> dst); +#endif + #endif diff --git a/include/smpi/smpi_shared_malloc.hpp b/include/smpi/smpi_shared_malloc.hpp deleted file mode 100644 index a047bf88f5..0000000000 --- a/include/smpi/smpi_shared_malloc.hpp +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef SMPI_SHARED_HPP -#define SMPI_SHARED_HPP -#include -#include -#include - - -/* - * We cannot put this declaration in smpi.h, since we use C++ features. - */ - - -XBT_PUBLIC(int) smpi_is_shared(void* ptr, std::vector> &private_blocks, size_t *offset); - -std::vector> shift_and_frame_private_blocks(const std::vector> vec, size_t offset, size_t buff_size); -std::vector> merge_private_blocks(std::vector> src, std::vector> dst); - -#endif diff --git a/src/smpi/smpi_coll.cpp b/src/smpi/smpi_coll.cpp index eff95bd838..e8995a6090 100644 --- a/src/smpi/smpi_coll.cpp +++ b/src/smpi/smpi_coll.cpp @@ -1,7 +1,6 @@ -/* smpi_coll.c -- various optimized routing for collectives */ +/* smpi_coll.c -- various optimized routing for collectives */ -/* Copyright (c) 2009-2017. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2009-2017. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -340,7 +339,3 @@ int Colls::exscan(void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype } } - - - - diff --git a/src/smpi/smpi_global.cpp b/src/smpi/smpi_global.cpp index afb5ebcd8b..d45a4a01e3 100644 --- a/src/smpi/smpi_global.cpp +++ b/src/smpi/smpi_global.cpp @@ -12,7 +12,6 @@ #include "src/smpi/SmpiHost.hpp" #include "xbt/config.hpp" #include "src/smpi/private.h" -#include "smpi/smpi_shared_malloc.hpp" #include "src/smpi/smpi_coll.hpp" #include "src/smpi/smpi_comm.hpp" #include "src/smpi/smpi_group.hpp" diff --git a/src/smpi/smpi_shared.cpp b/src/smpi/smpi_shared.cpp index eaa72b9a50..e5f24d6c42 100644 --- a/src/smpi/smpi_shared.cpp +++ b/src/smpi/smpi_shared.cpp @@ -38,7 +38,6 @@ #include "private.h" #include "private.hpp" -#include "smpi/smpi_shared_malloc.hpp" #include "xbt/dict.h" #include "xbt/ex.hpp" #include diff --git a/tools/cmake/DefinePackages.cmake b/tools/cmake/DefinePackages.cmake index ddb333ad7b..88f03a6579 100644 --- a/tools/cmake/DefinePackages.cmake +++ b/tools/cmake/DefinePackages.cmake @@ -689,7 +689,6 @@ set(headers_to_install include/smpi/smpi_extended_traces.h include/smpi/smpi_extended_traces_fortran.h include/smpi/forward.hpp - include/smpi/smpi_shared_malloc.hpp include/surf/surf_routing.h include/xbt.h include/xbt/RngStream.h