Showing posts with label QUEST. Show all posts
Showing posts with label QUEST. Show all posts

Monday, December 17, 2012

QUEST 1.3.0 and forrtl severe (173) error

If  you are running codes that uses QUEST 1.3.0 which are compiled with Intel XE, you may encounted the error

forrtl: severe (173): 
A pointer passed to DEALLOCATE points to an array that cannot be deallocated

Do note that QUEST used to work with Intel's ifort, but Intel has tightened their standard of memory allocation/deallocation hence the error you see. It is recommended you use gfrotran for the compilation

Saturday, July 21, 2012

Compiling QUEST with Intel XE Compilers on CentOS



This is a continuation of Compiling QUEST with GNU Compilers on CentOS, If  you are planning instead to use Intel XE Compilers, you have to edit the make.inc file. Here are my settings. Do note that the Intel XE and previous version of Intel are major architecture changes. Do look at Linking Applications with Intel MKL version 10

At make,inc, line 23
# Intel Fortran compiler
FC = ifort
FC_FLAGS    = -O3 -warn -openmp
NOOPT_FLAGS = -O0 -warn -openmp

At make.inc line 46
# Intel C++ compiler
 CXX = icc
 CXX_FLAGS = -O3 -openmp $(CUDAINC) $(MAGMAINC)

At make.inc, line 56
# Intel MKL library
MKLPATH   = /opt/intel/mkl/10.2.6.038/lib/em64t
LAPACKLIB = -L$(MKLPATH) -L$mkll  -lguide -lpthread -lguide -lpthread -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core


Finally, follow the verification process at stated in the Compiling QUEST with Intel Compilers on CentOS

Compiling QUEST with GNU Compilers on CentOS


QUEST (QUantum Electron Simulation Toolbox) is a Fortran 90/95 package that implements the Determinant Quantum Monte Carlo (DQMC) method for quantum electron simulations.

Compiling under gcc is complete breeze. Just do a simple.
# tar -xzf QUEST-1.3.0.tgz

# cd QUEST-1.3.0

# make
For different environments, please edit the make.inc file to suit your system. FOR GNU, you do not need to

For testing, you can go to  QUEST-1.3.0/EXAMPLE/verify
# ./verify

.....
.....
Parameters : t =  1.00, mu = -0.50, U =  0.00, beta =  1.50,
============================================================================
                    Theoretical | Computed (avg +- error) |  |T-C| : error
----------------------------------------------------------------------------
          Density :   0.828924  |  0.828924 +-  0.000000  |    0.00 :  0.00
           Energy :  -0.964017  | -0.964017 +-  0.000000  |    0.00 :  0.00
============================================================================
 91.11% within 1 error bar (Expected 63.2%).
100.00% within 2 error bar (Expected 86.5%).
 Running time:   322.1790     (second)