1 processor is faster than 8 processor?!!!!!!!
Moderators: fgoudreault, mcote
Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
1 processor is faster than 8 processor?!!!!!!!
Hi everybody
I have installed abinit in parallel on my computer which have the following environment:
cpu
description: CPU
product: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
bus info: cpu@0
version: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
8 processor
16 GB RAM
and the log file is attached
The problem is when I run abinit with one processor is faster than when i run it with 8 processor!!!!!
any help ??
Thanks
Nawzad
I have installed abinit in parallel on my computer which have the following environment:
cpu
description: CPU
product: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
bus info: cpu@0
version: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
8 processor
16 GB RAM
and the log file is attached
The problem is when I run abinit with one processor is faster than when i run it with 8 processor!!!!!
any help ??
Thanks
Nawzad
- Attachments
-
config.log
- Configure Log file:
- (11.63 KiB) Downloaded 426 times
Re: 1 processor is faster than 8 processor?!!!!!!!
Dear Nawzad,
You have enabled OpenMP in the configure flags (--enable-openmp). Did you submit your calculation using MPI only, both MPI/OpenMP or only OpenMP?
Check also what is your OMP_NUM_THREADS value on your machine, because if it is not 1 and that your running only MPI, you will find that 1 CPU is faster...
Best wishes,
Eric
You have enabled OpenMP in the configure flags (--enable-openmp). Did you submit your calculation using MPI only, both MPI/OpenMP or only OpenMP?
Check also what is your OMP_NUM_THREADS value on your machine, because if it is not 1 and that your running only MPI, you will find that 1 CPU is faster...
Best wishes,
Eric
Re: 1 processor is faster than 8 processor?!!!!!!!
ebousquet wrote:Dear Nawzad,
You have enabled OpenMP in the configure flags (--enable-openmp). Did you submit your calculation using MPI only, both MPI/OpenMP or only OpenMP?
Check also what is your OMP_NUM_THREADS value on your machine, because if it is not 1 and that your running only MPI, you will find that 1 CPU is faster...
Best wishes,
Eric
Hi Eric
I use mpirun -np 8 abinit<xxxxx.files to run abinit
and I don't know how to check OMP_NUM_THREADS on my machine

regards
Nawzad
Re: 1 processor is faster than 8 processor?!!!!!!!
You can get it from the command line:
You can tune its value as follows:
Here you put it to 1, meaning no OpenMP threads will be used.
Code: Select all
echo $OMP_NUM_THREADS
You can tune its value as follows:
Code: Select all
export OMP_NUM_THREADS=1
Here you put it to 1, meaning no OpenMP threads will be used.
Re: 1 processor is faster than 8 processor?!!!!!!!
Dear Eric
I did that but still same problem I have
I believe i have did configure not correct
with such environment, can you give me an idea about configuring?
Thanks
Nawzad
I did that but still same problem I have
I believe i have did configure not correct
with such environment, can you give me an idea about configuring?
Thanks
Nawzad
Re: 1 processor is faster than 8 processor?!!!!!!!
Dear Nawzad,
To be sure, can you recompile Abinit without OpenMP, i.e. removing the --enable-openmp flag in your configure run?
If it is still there, this means there is another problem somewhere else I don't see from a quick look.
Lets see without --enable-openmp what this gives.
Best wishes,
Eric
To be sure, can you recompile Abinit without OpenMP, i.e. removing the --enable-openmp flag in your configure run?
If it is still there, this means there is another problem somewhere else I don't see from a quick look.
Lets see without --enable-openmp what this gives.
Best wishes,
Eric
Re: 1 processor is faster than 8 processor?!!!!!!!
I indeed went too quickly to your config.log, actually the origin of the problem is more simple, if I'm right you didn't activate mpi parallelism (enable_mpi)? At the end of a configure run you have a small summary where you can check what has been activated or not (MPI, OpenMP, etc), please check it before going further.
Best wishes,
Eric
Best wishes,
Eric
Re: 1 processor is faster than 8 processor?!!!!!!!
Dear Eric
Without enable openmpi? you meam not parallelism? if you mean that, it works with running command ( abinit <xx.files>) but very slow because my computer is not powerful
I have reinstalled again and confgured using the following command
./configure FC=mpifort CC=mpicc --enable-openmp
I have enabled openmpi, still same problem I have
I have attached my input file also maybe there is something wrong about it ?
there is a funny thing happening with me, even when i run it with more number of processors what i have it, abinit still works, is that possible ?!!!
regards
Nawzad
Without enable openmpi? you meam not parallelism? if you mean that, it works with running command ( abinit <xx.files>) but very slow because my computer is not powerful
I have reinstalled again and confgured using the following command
./configure FC=mpifort CC=mpicc --enable-openmp
I have enabled openmpi, still same problem I have
I have attached my input file also maybe there is something wrong about it ?
there is a funny thing happening with me, even when i run it with more number of processors what i have it, abinit still works, is that possible ?!!!
regards
Nawzad
- Attachments
-
GWBANDGAP.in
- This is my input file
- (4.18 KiB) Downloaded 396 times
-
config.log
- Log file :
- (119.87 KiB) Downloaded 389 times
Re: 1 processor is faster than 8 processor?!!!!!!!
Dear Nawzad,
Be careful OpenMP and Open-MPI are not the same thing, please google them to make sure you understand the difference otherwise it'll be hard to communicate on this problem.
OpenMP use threading parallelism and I think this is your problem because you run your calculation as if it is with MPI parallelism but you don't enable it in the compilation, you enabled only OpenMP. So my advise is that don't enable OpenMP and enable MPI instead, that will fix your problem.
Best wishes,
Eric
Be careful OpenMP and Open-MPI are not the same thing, please google them to make sure you understand the difference otherwise it'll be hard to communicate on this problem.
OpenMP use threading parallelism and I think this is your problem because you run your calculation as if it is with MPI parallelism but you don't enable it in the compilation, you enabled only OpenMP. So my advise is that don't enable OpenMP and enable MPI instead, that will fix your problem.
Best wishes,
Eric