octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parallel and MPI with default branch


From: Sebastian Schöps
Subject: Re: Parallel and MPI with default branch
Date: Mon, 22 Jan 2018 17:26:47 +0100

Hello Carlo, 

> If you still get the same error with a recent snapshot of the package you 
> will have to provide more details
> in order to help me debug. but, at first sight, this appears to be a problem 
> related to your MPI installation
> rather than Octave.


I recompiled open-mpi (via homebrew) and tried again. Still no luck. I attach 
the complete error message below. Shall I open a bug report at savannah or 
bitbucket? 

Thanks,
Sebastian

P.S.: I am trying to finish a nice parareal implementation :) 

octave:1> pkg install -verbose ~/Downloads/mpi-2.0.tar.gz 
mkdir (/var/folders/yr/0kxqs6ns5_ncvr7v_sg568ww0000gp/T/oct-kgQVDj)
untar (/Users/schoeps/Downloads/mpi-2.0.tar.gz, 
/var/folders/yr/0kxqs6ns5_ncvr7v_sg568ww0000gp/T/oct-kgQVDj)
/usr/local/Cellar/octave/HEAD-c241918d4c92/bin/mkoctfile-4.3.0+ --verbose 
-I/usr/local/Cellar/open-mpi/3.0.0_2/include -L/usr/local/opt/libevent/lib 
-L/usr/local/Cellar/open-mpi/3.0.0_2/lib -lmpi MPI_Init.cc
/usr/local/Cellar/octave/HEAD-c241918d4c92/bin/mkoctfile-4.3.0+ --verbose 
-I/usr/local/Cellar/open-mpi/3.0.0_2/include -L/usr/local/opt/libevent/lib 
-L/usr/local/Cellar/open-mpi/3.0.0_2/lib -lmpi MPI_Initialized.cc
/usr/local/Cellar/octave/HEAD-c241918d4c92/bin/mkoctfile-4.3.0+ --verbose 
-I/usr/local/Cellar/open-mpi/3.0.0_2/include -L/usr/local/opt/libevent/lib 
-L/usr/local/Cellar/open-mpi/3.0.0_2/lib -lmpi MPI_Comm_rank.cc
clang++ -std=gnu++11 -c -I/usr/X11/include -fPIC 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/.. 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include  -D_THREAD_SAFE -pthread 
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/   
-I/usr/local/Cellar/open-mpi/3.0.0_2/include  MPI_Init.cc -o MPI_Init.o
/usr/local/Cellar/octave/HEAD-c241918d4c92/bin/mkoctfile-4.3.0+ --verbose 
-I/usr/local/Cellar/open-mpi/3.0.0_2/include -L/usr/local/opt/libevent/lib 
-L/usr/local/Cellar/open-mpi/3.0.0_2/lib -lmpi MPI_Comm_size.cc
clang++ -std=gnu++11 -c -I/usr/X11/include -fPIC 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/.. 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include  -D_THREAD_SAFE -pthread 
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/   
-I/usr/local/Cellar/open-mpi/3.0.0_2/include  MPI_Initialized.cc -o 
MPI_Initialized.o
clang++ -std=gnu++11 -c -I/usr/X11/include -fPIC 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/.. 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include  -D_THREAD_SAFE -pthread 
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/   
-I/usr/local/Cellar/open-mpi/3.0.0_2/include  MPI_Comm_rank.cc -o 
MPI_Comm_rank.o
clang++ -std=gnu++11 -c -I/usr/X11/include -fPIC 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/.. 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include  -D_THREAD_SAFE -pthread 
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/   
-I/usr/local/Cellar/open-mpi/3.0.0_2/include  MPI_Comm_size.cc -o 
MPI_Comm_size.o
MPI_Comm_size.cc:55:11: warning: 'mlock' is deprecated 
[-Wdeprecated-declarations]
          mlock ();
          ^
/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/variables.h:124:1:
 note: 'mlock' has been explicitly marked deprecated here
OCTAVE_DEPRECATED (4.4, "use 'interpreter::mlock' instead")
^
/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/octave-config.h:73:59:
 note: expanded from macro 'OCTAVE_DEPRECATED'
#      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
                                                          ^
MPI_Comm_rank.cc:55:11: warning: 'mlock' is deprecated 
[-Wdeprecated-declarations]
          mlock ();
          ^
/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/variables.h:124:1:
 note: 'mlock' has been explicitly marked deprecated here
OCTAVE_DEPRECATED (4.4, "use 'interpreter::mlock' instead")
^
/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/octave-config.h:73:59:
 note: expanded from macro 'OCTAVE_DEPRECATED'
#      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
                                                          ^
clang++ -std=gnu++11 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/.. 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include  -D_THREAD_SAFE -pthread 
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/ -bundle 
-bundle_loader /usr/local/Cellar/octave/HEAD-c241918d4c92/bin/octave-4.3.0+  -o 
MPI_Initialized.oct  MPI_Initialized.o   -L/usr/local/opt/libevent/lib 
-L/usr/local/Cellar/open-mpi/3.0.0_2/lib -lmpi 
-L/usr/local/Cellar/octave/HEAD-c241918d4c92/lib/octave/4.3.0+ 
-L/usr/local/Cellar/octave/HEAD-c241918d4c92/lib -loctinterp -loctave   
clang++ -std=gnu++11 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/.. 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include  -D_THREAD_SAFE -pthread 
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/ -bundle 
-bundle_loader /usr/local/Cellar/octave/HEAD-c241918d4c92/bin/octave-4.3.0+  -o 
MPI_Init.oct  MPI_Init.o   -L/usr/local/opt/libevent/lib 
-L/usr/local/Cellar/open-mpi/3.0.0_2/lib -lmpi 
-L/usr/local/Cellar/octave/HEAD-c241918d4c92/lib/octave/4.3.0+ 
-L/usr/local/Cellar/octave/HEAD-c241918d4c92/lib -loctinterp -loctave   
1 warning generated.
clang: warning: argument unused during compilation: '-pthread' 
[-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-pthread' 
[-Wunused-command-line-argument]
clang++ -std=gnu++11 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/.. 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include  -D_THREAD_SAFE -pthread 
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/ -bundle 
-bundle_loader /usr/local/Cellar/octave/HEAD-c241918d4c92/bin/octave-4.3.0+  -o 
MPI_Comm_size.oct  MPI_Comm_size.o   -L/usr/local/opt/libevent/lib 
-L/usr/local/Cellar/open-mpi/3.0.0_2/lib -lmpi 
-L/usr/local/Cellar/octave/HEAD-c241918d4c92/lib/octave/4.3.0+ 
-L/usr/local/Cellar/octave/HEAD-c241918d4c92/lib -loctinterp -loctave   
clang: warning: argument unused during compilation: '-pthread' 
[-Wunused-command-line-argument]
/usr/local/Cellar/octave/HEAD-c241918d4c92/bin/mkoctfile-4.3.0+ --verbose 
-I/usr/local/Cellar/open-mpi/3.0.0_2/include -L/usr/local/opt/libevent/lib 
-L/usr/local/Cellar/open-mpi/3.0.0_2/lib -lmpi MPI_Finalize.cc
clang++ -std=gnu++11 -c -I/usr/X11/include -fPIC 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/.. 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include  -D_THREAD_SAFE -pthread 
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/   
-I/usr/local/Cellar/open-mpi/3.0.0_2/include  MPI_Finalize.cc -o MPI_Finalize.o
/usr/local/Cellar/octave/HEAD-c241918d4c92/bin/mkoctfile-4.3.0+ --verbose 
-I/usr/local/Cellar/open-mpi/3.0.0_2/include -L/usr/local/opt/libevent/lib 
-L/usr/local/Cellar/open-mpi/3.0.0_2/lib -lmpi MPI_Finalized.cc
clang++ -std=gnu++11 -c -I/usr/X11/include -fPIC 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/.. 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include  -D_THREAD_SAFE -pthread 
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/   
-I/usr/local/Cellar/open-mpi/3.0.0_2/include  MPI_Finalized.cc -o 
MPI_Finalized.o
/usr/local/Cellar/octave/HEAD-c241918d4c92/bin/mkoctfile-4.3.0+ --verbose 
-I/usr/local/Cellar/open-mpi/3.0.0_2/include -L/usr/local/opt/libevent/lib 
-L/usr/local/Cellar/open-mpi/3.0.0_2/lib -lmpi MPI_Send.cc
clang++ -std=gnu++11 -c -I/usr/X11/include -fPIC 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/.. 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include  -D_THREAD_SAFE -pthread 
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/   
-I/usr/local/Cellar/open-mpi/3.0.0_2/include  MPI_Send.cc -o MPI_Send.o
1 warning generated.
clang++ -std=gnu++11 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/.. 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include  -D_THREAD_SAFE -pthread 
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/ -bundle 
-bundle_loader /usr/local/Cellar/octave/HEAD-c241918d4c92/bin/octave-4.3.0+  -o 
MPI_Comm_rank.oct  MPI_Comm_rank.o   -L/usr/local/opt/libevent/lib 
-L/usr/local/Cellar/open-mpi/3.0.0_2/lib -lmpi 
-L/usr/local/Cellar/octave/HEAD-c241918d4c92/lib/octave/4.3.0+ 
-L/usr/local/Cellar/octave/HEAD-c241918d4c92/lib -loctinterp -loctave   
clang: warning: argument unused during compilation: '-pthread' 
[-Wunused-command-line-argument]
/usr/local/Cellar/octave/HEAD-c241918d4c92/bin/mkoctfile-4.3.0+ --verbose 
-I/usr/local/Cellar/open-mpi/3.0.0_2/include -L/usr/local/opt/libevent/lib 
-L/usr/local/Cellar/open-mpi/3.0.0_2/lib -lmpi MPI_Recv.cc
clang++ -std=gnu++11 -c -I/usr/X11/include -fPIC 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/.. 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include  -D_THREAD_SAFE -pthread 
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/   
-I/usr/local/Cellar/open-mpi/3.0.0_2/include  MPI_Recv.cc -o MPI_Recv.o
MPI_Send.cc:65:15: warning: 'mlock' is deprecated [-Wdeprecated-declarations]
              mlock ();
              ^
/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/variables.h:124:1:
 note: 'mlock' has been explicitly marked deprecated here
OCTAVE_DEPRECATED (4.4, "use 'interpreter::mlock' instead")
^
/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/octave-config.h:73:59:
 note: expanded from macro 'OCTAVE_DEPRECATED'
#      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
                                                          ^
MPI_Send.cc:98:26: error: no viable overloaded '='
                  retval = info;
                  ~~~~~~ ^ ~~~~
/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/ov.h:358:17:
 note: candidate function not viable: no known conversion from 'Array<int>' to
      'const octave_value' for 1st argument
  octave_value& operator = (const octave_value& a)
                ^
MPI_Recv.cc:66:15: warning: 'mlock' is deprecated [-Wdeprecated-declarations]
              mlock ();
              ^
/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/variables.h:124:1:
 note: 'mlock' has been explicitly marked deprecated here
OCTAVE_DEPRECATED (4.4, "use 'interpreter::mlock' instead")
^
/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/octave-config.h:73:59:
 note: expanded from macro 'OCTAVE_DEPRECATED'
#      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
                                                          ^
MPI_Recv.cc:79:15: error: no matching function for call to 'MPI_Get_count'
              MPI_Get_count (&status, MPI_CHAR, &num);
              ^~~~~~~~~~~~~
/usr/local/Cellar/open-mpi/3.0.0_2/include/mpi.h:1477:20: note: candidate 
function not viable: no known conversion from 'octave_idx_type *' (aka 'long 
long *') to 'int *' for
      3rd argument
OMPI_DECLSPEC  int MPI_Get_count(const MPI_Status *status, MPI_Datatype 
datatype, int *count);
                   ^
MPI_Recv.cc:91:19: error: no matching function for call to 'install_types'
                  install_types ();    
                  ^~~~~~~~~~~~~
/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/ov.h:1633:27:
 note: candidate function not viable: requires 1 argument, but 0 were provided
extern OCTINTERP_API void install_types (octave::type_info&);
                          ^
1 warning and 1 error generated.
make: *** [MPI_Send.oct] Error 1
make: *** Waiting for unfinished jobs....
clang++ -std=gnu++11 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/.. 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include  -D_THREAD_SAFE -pthread 
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/ -bundle 
-bundle_loader /usr/local/Cellar/octave/HEAD-c241918d4c92/bin/octave-4.3.0+  -o 
MPI_Finalize.oct  MPI_Finalize.o   -L/usr/local/opt/libevent/lib 
-L/usr/local/Cellar/open-mpi/3.0.0_2/lib -lmpi 
-L/usr/local/Cellar/octave/HEAD-c241918d4c92/lib/octave/4.3.0+ 
-L/usr/local/Cellar/octave/HEAD-c241918d4c92/lib -loctinterp -loctave   
clang++ -std=gnu++11 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave/.. 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include/octave-4.3.0+/octave 
-I/usr/local/Cellar/octave/HEAD-c241918d4c92/include  -D_THREAD_SAFE -pthread 
-I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/ -bundle 
-bundle_loader /usr/local/Cellar/octave/HEAD-c241918d4c92/bin/octave-4.3.0+  -o 
MPI_Finalized.oct  MPI_Finalized.o   -L/usr/local/opt/libevent/lib 
-L/usr/local/Cellar/open-mpi/3.0.0_2/lib -lmpi 
-L/usr/local/Cellar/octave/HEAD-c241918d4c92/lib/octave/4.3.0+ 
-L/usr/local/Cellar/octave/HEAD-c241918d4c92/lib -loctinterp -loctave   
clang: warning: argument unused during compilation: '-pthread' 
[-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-pthread' 
[-Wunused-command-line-argument]
1 warning and 2 errors generated.
make: *** [MPI_Recv.oct] Error 1

pkg: error running `make' for the mpi package.
error: called from
    configure_make at line 95 column 9
    install at line 192 column 7
    pkg at line 394 column 9



reply via email to

[Prev in Thread] Current Thread [Next in Thread]