mirror of https://github.com/QMCPACK/qmcpack.git
AFQMC - fixes for Mac build
Comment out the use of sys/sysinfo.h - it's used to print the free memory before a sparse eigenvalue computation. And this eigenvalue computation appears to be unused elsewhere in the code. The 'rt' library does not need to be linked on Mac.
This commit is contained in:
parent
944bf070a2
commit
18e767b6f5
|
@ -531,7 +531,7 @@ If (BUILD_AFQMC AND QMC_COMPLEX)
|
|||
MESSAGE(STATUS "Warning: Complex wavefunctions are not yet supported by AFQMC.")
|
||||
ENDIF()
|
||||
|
||||
IF (BUILD_AFQMC)
|
||||
IF (BUILD_AFQMC AND NOT APPLE)
|
||||
LINK_LIBRARIES("rt")
|
||||
ENDIF()
|
||||
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
#include<cassert>
|
||||
|
||||
#include "AFQMC/config.h"
|
||||
#ifdef PRINT_FREE_MEMORY
|
||||
#include "sys/sysinfo.h"
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_MKL)
|
||||
#include "mkl.h"
|
||||
|
@ -468,10 +470,12 @@ bool sparseEigenSystem(RealSpMat &A, int& m0, RealType *eigval, RealType* eigVec
|
|||
std::cout<<"Problem size: " <<N <<std::endl;
|
||||
std::cout<<"Available memory: ";
|
||||
|
||||
#ifdef PRINT_FREE_MEMORY
|
||||
struct sysinfo si;
|
||||
sysinfo(&si);
|
||||
si.freeram+=si.bufferram;
|
||||
std::cout<<int(si.freeram>>20) <<std::endl;
|
||||
#endif
|
||||
|
||||
fpm[0] = 1;
|
||||
fpm[4] = 1;
|
||||
|
|
Loading…
Reference in New Issue