Difference between revisions of "Identify what's causing segmentation fault in Yambo"

From The Yambo Project
Jump to navigation Jump to search
Line 7: Line 7:


# '''GPU''': are you running Yambo with GPU support? In this case try to recompile without <code>--enable-cuda</code> flag. If this solve the problem report your bug in the section [http://www.yambo-code.org/forum/viewforum.php?f=38 Yambo on GPU machines] otherwise to the next step.
# '''GPU''': are you running Yambo with GPU support? In this case try to recompile without <code>--enable-cuda</code> flag. If this solve the problem report your bug in the section [http://www.yambo-code.org/forum/viewforum.php?f=38 Yambo on GPU machines] otherwise to the next step.
# '''OPEN-MP''': Try to compile and run without open-mp support, no <code>--enable-open-mp</code> flag in compilation and <code>OMP_NUM_THREADS="1"</code>.
# '''OPEN-MP''': compile and run Yambo without open-mp support, no <code>--enable-open-mp</code> flag in compilation and <code>OMP_NUM_THREADS="1"</code>.
# '''Internal Lapack/Blas''': try to compile with internal Lapack/Blas libraries <code>--enable-int-linalg</code> in the configure.
# '''Internal Lapack/Blas''': compile Yambo with internal Lapack/Blas libraries <code>--enable-int-linalg</code> in the configure.
# '''Internal FFT''': try to compile with internal FFT libraries <code>--enable-internal-fftsg</code> in the configure
# '''Internal FFT''': compile Yambo with internal FFT libraries <code>--enable-internal-fftsg</code> in the configure.
# '''Scalapack''': compile without Scalpack, unset the flag <code>--with-scalapack-libs</code> if you use it.
# '''Parallelism'''
## Change the number of processors
## Use automatic parallelization, unset all parallel variable input
## Run in serial

Revision as of 17:17, 10 January 2021

There may be different reasons why the Yambo code generates segmentation faults in a run.
To help Yambo developers understand where the problem lies and help you, please follow the steps below. If one of the step solves your problem and please report the result in the forum.


Rule out possible causes of the segmentation fault:

  1. GPU: are you running Yambo with GPU support? In this case try to recompile without --enable-cuda flag. If this solve the problem report your bug in the section Yambo on GPU machines otherwise to the next step.
  2. OPEN-MP: compile and run Yambo without open-mp support, no --enable-open-mp flag in compilation and OMP_NUM_THREADS="1".
  3. Internal Lapack/Blas: compile Yambo with internal Lapack/Blas libraries --enable-int-linalg in the configure.
  4. Internal FFT: compile Yambo with internal FFT libraries --enable-internal-fftsg in the configure.
  5. Scalapack: compile without Scalpack, unset the flag --with-scalapack-libs if you use it.
  6. Parallelism
    1. Change the number of processors
    2. Use automatic parallelization, unset all parallel variable input
    3. Run in serial