Author Topic: How to a lot faster Install PETSc  (Read 6736 times)

Yaakov

  • Sr. Member
  • ****
  • Posts: 323
How to a lot faster Install PETSc
« 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
« Last Edit: November 18, 2017, 05:13:12 PM by Yaakov »
Let's boost FEAP's performance!

JStorm

  • Sr. Member
  • ****
  • Posts: 250
Re: How to a lot faster Install PETSc
« Reply #1 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.

Yaakov

  • Sr. Member
  • ****
  • Posts: 323
Re: How to a lot faster Install PETSc
« Reply #2 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)........
« Last Edit: November 20, 2017, 01:05:51 PM by Yaakov »
Let's boost FEAP's performance!

JStorm

  • Sr. Member
  • ****
  • Posts: 250
Re: How to a lot faster Install PETSc
« Reply #3 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

Yaakov

  • Sr. Member
  • ****
  • Posts: 323
Re: How to a lot faster Install PETSc
« Reply #4 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
« Last Edit: December 13, 2017, 06:03:05 AM by Yaakov »
Let's boost FEAP's performance!

fethio

  • Jr. Member
  • **
  • Posts: 47
Re: How to a lot faster Install PETSc
« Reply #5 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??
« Last Edit: December 13, 2017, 09:12:17 AM by fethio »