PHCpack icon indicating copy to clipboard operation
PHCpack copied to clipboard

cross-node parallel computing using phc

Open zhangyusi-hub opened this issue 3 years ago • 4 comments

When tasking for tracking paths using multiple threads, I use the following method: phc -b -t48 cyclic7 ./cyclic7.out But how can I run phc to adopt the cross-node parallel computing method,such as using 2 compute nodes?

zhangyusi-hub avatar Jul 09 '21 03:07 zhangyusi-hub

In order to use message passing, one has to compile for example https://github.com/janverschelde/PHCpack/blob/master/src/MPI/mpi2padcon.c but that does only path tracking, not the blackbox solving such as phc -b -t. The entire blackbox solver is currently not supported to work with message passing.

janverschelde avatar Jul 10 '21 21:07 janverschelde

OK, I will try according to your advice. But when using the blackbox solver such as phc -b -t, how to use the total-degree method, not the mixed-volume method?

zhangyusi-hub avatar Jul 13 '21 09:07 zhangyusi-hub

The blackbox solver is a blackbox in the sense that it tries to make the best choices. In case the mixed volume equals the total degree, then the blackbox solver will use the total degree start system, but the blackbox solver does not has the option to force the use of the total degree start system.

janverschelde avatar Jul 14 '21 02:07 janverschelde

Thanks, I know it. I used the following method to compile the makefile in /PHCpack/src/MPI: cd /PHCpack/src/MPI make all

But there is a following error with gnatbind: invalid switch: -C gcc -c call_hello.c gnatmake -c hello.adb gnatmake: objects up to date. gnatbind -n -C hello gnatbind: invalid switch: -C

And when I modify it with gnatbind -n -c hello, there is another error with gnatlink: Failed to open binder output: gcc -c call_hello.c gnatmake -c hello.adb gnatmake: objects up to date. gnatbind -n -c hello gnatlink -c hello call_hello.o adatest.o -o adatest
--LINK=/BIGDATA1/app/MPI/mpich/3.2.1-gcc-4.8.5-dynamic/bin/mpicc gnatlink: Failed to open binder output Could you tell me how to solve the two problems?

zhangyusi-hub avatar Jul 14 '21 14:07 zhangyusi-hub