1
1
/* One-sided MPI implementation of Libcaf
2
- *
2
+ *
3
3
* Copyright (c) 2012-2018, Sourcery, Inc.
4
4
* All rights reserved.
5
- *
5
+ *
6
6
* Redistribution and use in source and binary forms, with or without
7
7
* modification, are permitted provided that the following conditions are met:
8
8
* * Redistributions of source code must retain the above copyright
13
13
* * Neither the name of the Sourcery, Inc., nor the
14
14
* names of its contributors may be used to endorse or promote products
15
15
* derived from this software without specific prior written permission.
16
- *
16
+ *
17
17
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18
18
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19
19
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -5659,7 +5659,7 @@ PREFIX(send_by_ref) (caf_token_t token, int image_index,
5659
5659
const char nonallocextentmismatch [] =
5660
5660
"libcaf_mpi::caf_send_by_ref(): "
5661
5661
"extent of non-allocatable arrays mismatch (%lu != %lu).\n" ;
5662
-
5662
+
5663
5663
size_t size , i , ref_rank = 0 , src_index , dst_size ;
5664
5664
int dst_rank = -1 , src_cur_dim = 0 , ierr ;
5665
5665
mpi_caf_token_t * mpi_token = (mpi_caf_token_t * ) token ;
@@ -5689,11 +5689,12 @@ PREFIX(send_by_ref) (caf_token_t token, int image_index,
5689
5689
5690
5690
check_image_health (image_index , stat );
5691
5691
5692
- dprint ("Entering send_by_ref(may_require_tmp = %d" , may_require_tmp );
5693
5692
#ifdef GCC_GE_8
5694
- fprintf (stderr , ", dst_type = %d" , dst_type );
5693
+ dprint ("Entering send_by_ref(may_require_tmp = %d, dst_type = %d)\n" ,
5694
+ may_require_tmp , dst_type );
5695
+ #else
5696
+ dprint ("Entering send_by_ref(may_require_tmp = %d)\n" , may_require_tmp );
5695
5697
#endif
5696
- fprintf (stderr , ").\n" );
5697
5698
5698
5699
/* Compute the size of the result. In the beginning size just counts the
5699
5700
* number of elements. */
@@ -8211,4 +8212,4 @@ void PREFIX(sync_team) (caf_team_t *team , int unused __attribute__((unused)))
8211
8212
"or ancestor, or descendant" );
8212
8213
8213
8214
int ierr = MPI_Barrier (* tmp_comm ); chk_err (ierr );
8214
- }
8215
+ }
0 commit comments