FEAP User Forum

FEAP => Parallel FEAP => Topic started by: Yaakov on November 17, 2017, 06:22:55 PM

Title: How to a lot faster Install PETSc
Post by: Yaakov on November 17, 2017, 06:22:55 PM
Dear PETSc & FEAP Users,

Last week I found that It was very slowly to install PETSc in my personal Notebook (8x Intel(R) Core(TM) i7-4710HQ CPU ...)

Today I get the best solution to solve this problem and I can a lot faster install PETSc such a programm which needs make install command.

we just need to use the following two steps:

1. check number of cores in your computer :  cat /proc/cpuinfo
2. If It has 8 cores, we may use:  make -j8

This method really reduces a lot of the time for building system!

Cheers,
Yaakov
Title: Re: How to a lot faster Install PETSc
Post by: JStorm on November 19, 2017, 11:09:06 PM
1. check number of cores in your computer :  cat /proc/cpuinfo
2. If It has 8 cores, we may use:  make -j8

A small additional hint regarding compilation with make. To use all available cores, you can call
Code: [Select]
make -jwithout specifying the number of cores. You also can use the multi-processing feature of make while compiling FEAP.
Title: Re: How to a lot faster Install PETSc
Post by: Yaakov on November 20, 2017, 04:19:46 AM
1. check number of cores in your computer :  cat /proc/cpuinfo
2. If It has 8 cores, we may use:  make -j8

A small additional hint regarding compilation with make. To use all available cores, you can call
Code: [Select]
make -jwithout specifying the number of cores. You also can use the multi-processing feature of make while compiling FEAP.

If we use full number of cores for building system (PETSc), It may produce some issues during the installation-process (P.S. Just Keep Real)........
Title: Re: How to a lot faster Install PETSc
Post by: JStorm on November 20, 2017, 04:26:59 AM
for me it is working fine with make -j and make install.
or in short:
Code: [Select]
make -j && make install
Title: Re: How to a lot faster Install PETSc
Post by: Yaakov on December 13, 2017, 05:56:18 AM
Dear FEAP-Users,

Kindly I would like to add an important information.

for Multiple build processes in LINUX(UBUNTU/KUBUNTU/GNOME...): [-j <N>], [--PROCS=<N>]
If you want to use this option, you need to have enough system memory (e.g. at least 8GB for 2 or more processes).

Kind regards,
Yaakov
Title: Re: How to a lot faster Install PETSc
Post by: fethio on December 13, 2017, 09:10:28 AM
Thank you Yaakov and JStorm, this has been an enlightening post. I confess that I am just confined to a single process, but was looking for an opportunity to easily switch to parallel processing.

Edit: Can we put this Howto, for example, in the FEAP Wiki as registered users of the forum??