1
1
openmpi/ompi
Risto Toijala f14a0f4fc9 mpi/fortran: Fix valgrind warnings for type create
Valgrind warns that *newtype is uninitialized when calling from
Fortran as e.g.
    use mpi
    integer :: t, err
    call MPI_Type_create_f90_integer(5, t, err)

Since newtype is intent(out), this should not happen. There is
no reason to convert the type using PMPI_Type_f2c, only to over-
write it immediately afterwards. The other type_create_* functions
did not convert newtype.

The valgrind warnings:
==28441== Conditional jump or move depends on uninitialised value(s)
==28441==    at 0x581B555: PMPI_Type_f2c (in [...]/lib/libmpi.so.0.0.0)
==28441==    by 0x4E87AB7: MPI_TYPE_CREATE_F90_INTEGER (in [...]/lib/libmpi_mpifh.so.0.0.0)
==28441==    by 0x400BA1: MAIN__ (in [...])
==28441==    by 0x400C46: main (in [...])
==28441==
==28441== Conditional jump or move depends on uninitialised value(s)
==28441==    at 0x581B563: PMPI_Type_f2c (in [...]/lib/libmpi.so.0.0.0)
==28441==    by 0x4E87AB7: MPI_TYPE_CREATE_F90_INTEGER (in [...]/lib/libmpi_mpifh.so.0.0.0)
==28441==    by 0x400BA1: MAIN__ (in [..])
==28441==    by 0x400C46: main (in [...])
==28441==
==28441== Use of uninitialised value of size 8
==28441==    at 0x581B577: PMPI_Type_f2c (in [...]/lib/libmpi.so.0.0.0)
==28441==    by 0x4E87AB7: MPI_TYPE_CREATE_F90_INTEGER (in [...]/lib/libmpi_mpifh.so.0.0.0)
==28441==    by 0x400BA1: MAIN__ (in [...])
==28441==    by 0x400C46: main (in [...])
==28441==

Signed-off-by: Risto Toijala <risto.toijala@gmail.com>
2019-01-08 22:00:00 +02:00
..
attribute Remove some IMPI attributes that were never implemented. 2018-12-20 10:12:32 -08:00
class Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
communicator Merge pull request #6087 from ICLDisco/export/errors_cid 2018-12-31 15:01:55 -05:00
contrib ompitrace: MPI_Address -> MPI_Get_address 2018-05-01 15:20:02 -06:00
datatype ompi/datatype: don't call opal_datatype_finalize directly 2018-12-18 14:37:04 -07:00
debuggers Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
dpm Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
errhandler Merge pull request #6087 from ICLDisco/export/errors_cid 2018-12-31 15:01:55 -05:00
etc Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
file ompi/file: rename ompi_file_t's f_mutex into f_lock 2017-12-01 16:06:22 +09:00
group opal: add types for atomic variables 2018-09-14 10:48:55 -06:00
include Remove some IMPI attributes that were never implemented. 2018-12-20 10:12:32 -08:00
info ompi: cleanup various string operations 2018-10-14 16:10:20 -07:00
interlib Update the interlib example to show an alternative method for model declaration. Add a missing range value to the OPAL layer. Make it easier to see OMPI model callbacks 2017-10-23 11:27:42 -07:00
mca Merge pull request #6229 from jsquyres/pr/fix-enable-grequest-extension-in-a-tarball 2018-12-28 16:15:23 -05:00
message predefined MPI object padding: set to fixed number of bytes (#3634) 2017-06-01 15:28:23 -04:00
mpi mpi/fortran: Fix valgrind warnings for type create 2019-01-08 22:00:00 +02:00
mpiext mpiext: updates for header file locations 2018-12-06 15:40:02 +09:00
op ompi: cleanup various string operations 2018-10-14 16:10:20 -07:00
patterns scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
peruse mpi/finalized: revamp INITIALIZED/FINALIZED 2018-06-01 13:36:29 -07:00
proc ompi: Avoid unnecessary PMIx lookups when adding procs (step 2). 2017-03-16 07:47:27 +07:00
request Merge pull request #4897 from bosilca/topic/waitsome 2018-09-18 12:34:22 -04:00
runtime Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
tools Allow to override build user and host 2018-10-20 09:27:00 -04:00
util timings: added new timing points 2018-03-21 05:16:25 +02:00
win ompi: cleanup various string operations 2018-10-14 16:10:20 -07:00
Makefile.am fortran/use-mpi-f08: fix [p]ompi_FOO_f symbols handling 2018-09-19 14:12:55 +09:00