Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
Joined: Oct 2022
Posts: 14
R
Forum Member
OP Offline
Forum Member
R
Joined: Oct 2022
Posts: 14
Dear Charmm users and developers,

I have successfully installed the serial and the parallel version of CHARMM c48a1. However, I am not able to install the ABPO module. I am using the following commands to install it.

./configure --with-abpo --add ENSEMBLE
make -C build/cmake install

All the compilation ends without any error. However, I am getting the following error when I tried to run the testcase.


CHARMM> if ?ABPO .ne. 1 then
RDCMND: can not substitute energy "?ABPO"
Comparing "?ABPO" and "1".
IF test evaluated as true. Performing command

CHARMM> echo "Test NOT performed."
"Test NOT performed."

CHARMM> stop


Please suggest me the proper installation procedure or the possible error in the compilation.

Thanks and Regards

Rajarshi Roy


Regards
Rajarshi Roy

Joined: Sep 2003
Posts: 8,658
Likes: 26
rmv Online Content
Forum Member
Online Content
Forum Member
Joined: Sep 2003
Posts: 8,658
Likes: 26
Insufficient data. The output from ./configure may hold some clues.

I find it best to use a new, empty directory for charmm cmake builds, e.g. from the c48a1 directory:

mkdir ../bld-abpo
cd ../bld-abpo
../c48a1/configure --with-abpo --add ENSEMBLE


Check the output for warnings, errors, or cryptic messages


Rick Venable
computational chemist

Joined: Oct 2022
Posts: 14
R
Forum Member
OP Offline
Forum Member
R
Joined: Oct 2022
Posts: 14
Thank you for your suggestion.
Here is the output of the ./configure . Hope it will help.

=====
abpo selected
=====
additional keywords
ENSEMBLE
=====
WARNING install prefix not specified
depending on your system, executing make install
may result in directories being written to /usr/local
or somewhere similar
=====
configuration using cmake continues using
env /usr/bin/cmake -Dabpo=ON -Dadd_keywords=ENSEMBLE /depot/cbp/apps/charmm/c48a1

after configuration run make in
/depot/cbp/apps/charmm/bld-abpo
to compile and link the charmm executable
=====
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- The Fortran compiler identification is GNU
-- Check for working C compiler: /apps/spack/halstead/apps/openmpi/3.1.4-gcc-8.3.0-yp6xjhj/bin/mpicc
-- Check for working C compiler: /apps/spack/halstead/apps/openmpi/3.1.4-gcc-8.3.0-yp6xjhj/bin/mpicc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /apps/spack/halstead/apps/openmpi/3.1.4-gcc-8.3.0-yp6xjhj/bin/mpiCC
-- Check for working CXX compiler: /apps/spack/halstead/apps/openmpi/3.1.4-gcc-8.3.0-yp6xjhj/bin/mpiCC -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working Fortran compiler: /apps/spack/halstead/apps/openmpi/3.1.4-gcc-8.3.0-yp6xjhj/bin/mpif90
-- Check for working Fortran compiler: /apps/spack/halstead/apps/openmpi/3.1.4-gcc-8.3.0-yp6xjhj/bin/mpif90 -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /apps/spack/halstead/apps/openmpi/3.1.4-gcc-8.3.0-yp6xjhj/bin/mpif90 supports Fortran 90
-- Checking whether /apps/spack/halstead/apps/openmpi/3.1.4-gcc-8.3.0-yp6xjhj/bin/mpif90 supports Fortran 90 -- yes
-- Could NOT find FFTW (missing: FFTW_INCLUDES FFTW_LIBRARIES)
-- Could NOT find FFTWF (missing: FFTWF_LIBRARIES)
CMake Warning at CMakeLists.txt:262 (message):
Unable to find single precision FFTW


CMake Warning at CMakeLists.txt:267 (message):
FFTW or MKL required for COLFFT; switching COLFFT OFF


-- Found MPI_C: /apps/spack/halstead/apps/openmpi/3.1.4-gcc-8.3.0-yp6xjhj/lib/libmpi.so
-- Found MPI_CXX: /apps/spack/halstead/apps/openmpi/3.1.4-gcc-8.3.0-yp6xjhj/lib/libmpi_cxx.so;/apps/spack/halstead/apps/openmpi/3.1.4-gcc-8.3.0-yp6xjhj/lib/libmpi.so
-- Found MPI_Fortran: /apps/spack/halstead/apps/openmpi/3.1.4-gcc-8.3.0-yp6xjhj/lib/libmpi_usempif08.so;/apps/spack/halstead/apps/openmpi/3.1.4-gcc-8.3.0-yp6xjhj/lib/libmpi_usempi_ignore_tkr.so;/apps/spack/halstead/apps/openmpi/3.1.4-gcc-8.3.0-yp6xjhj/lib/libmpi_mpifh.so;/apps/spack/halstead/apps/openmpi/3.1.4-gcc-8.3.0-yp6xjhj/lib/libmpi.so
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp
-- Try OpenMP Fortran flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP_Fortran: -fopenmp
-- OpenMM : OPENMM_INCLUDE_DIRS NOT FOUND : OpenMM may not be available at run time
-- Could NOT find OpenMM (missing: OPENMM_INCLUDE_DIRS OPENMM_LIBRARIES OPENMM_PLUGIN_DIR)
-- Could NOT find ExaFMM (missing: ExaFMM_LIBRARY)
CMake Warning at CMakeLists.txt:344 (message):
COLFFT is required for DOMDEC; switching DOMDEC OFF


CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY)
-- Looking for CL_VERSION_2_2
-- Looking for CL_VERSION_2_2 - not found
-- Looking for CL_VERSION_2_1
-- Looking for CL_VERSION_2_1 - not found
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - not found
-- Looking for CL_VERSION_1_2
-- Looking for CL_VERSION_1_2 - not found
-- Looking for CL_VERSION_1_1
-- Looking for CL_VERSION_1_1 - not found
-- Looking for CL_VERSION_1_0
-- Looking for CL_VERSION_1_0 - not found
-- Could NOT find OpenCL (missing: OpenCL_LIBRARY OpenCL_INCLUDE_DIR)
-- OpenCL not found
-- full build chosen
-- Configuring done
-- Generating done
-- Build files have been written to: /depot/cbp/apps/charmm/bld-abpo
=====
you are now ready to run make in
/depot/cbp/apps/charmm/bld-abpo



waiting for your suggestion.
Thank you


Regards
Rajarshi Roy

Joined: Sep 2003
Posts: 8,658
Likes: 26
rmv Online Content
Forum Member
Online Content
Forum Member
Joined: Sep 2003
Posts: 8,658
Likes: 26
The main issue I see so far is performance related; the lack of a pointer to a supported FFTW implementation has disabled the DOMDEC engine. This will have a large impact on performance at the very least. The solution often requires building your own FFTW library. Also, the GCC version is a bit old, the current version is 12.2; I've been using gcc 11.x, with compatible FFTW and MPI libraries.

Go ahead and run the make command in the build directory; you can see the output and save the log at the same time via

make -j8 | tee abpo-bild.log

The -j8 option will use up to 8 threads during the build, which makes it faster. Check the log for references to abpo to see if there are any serious messages.

You should then run the entire test suite.

Note that for longer listings, we suggest the use of .txt attachments instead of pasting into the post directly.


Rick Venable
computational chemist

Joined: Oct 2022
Posts: 14
R
Forum Member
OP Offline
Forum Member
R
Joined: Oct 2022
Posts: 14
I again installed the entire charmm and not able to find any serious message or warning related to abpo. However still I am not able to run abpo and not able to find the possible origin of this error. I also attached the log file for your reference. Any kind of lead will be helpful.
Thank you

Attached Images
abpo-bild.txt (85 KB, 67 downloads)
SHA1: 1cada72dc7b96d67725617cdb1d923718b0fb08d

Regards
Rajarshi Roy

Joined: Sep 2003
Posts: 8,658
Likes: 26
rmv Online Content
Forum Member
Online Content
Forum Member
Joined: Sep 2003
Posts: 8,658
Likes: 26
In the directory where you ran make, delete the following 2 files:

CMakeFiles/charmm_fortran.dir/abpo.F90.o
CMakeFiles/charmm_fortran.dir/ensemble.F90.o


Then run the command

make VERBOSE=1

This will recompile only the corresponding .F90 files, and also provide compiler related output which should include the keywords used.


Rick Venable
computational chemist

Joined: Oct 2022
Posts: 14
R
Forum Member
OP Offline
Forum Member
R
Joined: Oct 2022
Posts: 14
Thank you for your suggestion. I recompile the abpo alone, still not able to find any error in the time of installation. For your reference, I also attached the output.

Attached Images
output.txt (219.87 KB, 68 downloads)
SHA1: c96c3284449c74f9f98b9d1bf4afd4af3cd9abf7

Regards
Rajarshi Roy

Joined: Sep 2003
Posts: 8,658
Likes: 26
rmv Online Content
Forum Member
Online Content
Forum Member
Joined: Sep 2003
Posts: 8,658
Likes: 26
What do you know about the history of ABPO, and when it was last compiled successfully?

My suspicion is that KEY_ABPO may not be defined properly, but we need log messages from the compiler to verify that, and output.txt does not have compiler messages.

I'll see if I can reproduce the problem.


Rick Venable
computational chemist

Joined: Apr 2013
Posts: 37
B
Forum Member
Offline
Forum Member
B
Joined: Apr 2013
Posts: 37
That was indeed the problem. I am posting a patch file here that works with c48a1.

Without the patch, one workaround is to use '-a ABPO,ENSMEMBLE' instead of '--with-abpo'

After the patch is applied, there is no need to do '-a ENSEMBLE', '--with-abpo' will take care of that automatically.

Attached Images
abpo-fix.txt (783 Bytes, 69 downloads)
SHA1: 3cbbeb1c2a6b2eb987db2bf506cd37c70b993fb1
Joined: Sep 2003
Posts: 8,658
Likes: 26
rmv Online Content
Forum Member
Online Content
Forum Member
Joined: Sep 2003
Posts: 8,658
Likes: 26
I can confirm that KEY_ABPO is not being set when the --with-abpo flag to configure is used, which points to a cmake configure issue.
I also tried '-a ABPO -a ENSEMBLE', but that didn't work either.

You can see this in the build directory via

cat CMakeFiles/charmm.dir/flags.make

Do you have any contacts at the U. Mich. lab that manages the charmm distribution? They've done most of cmake setup.

Added note:
Thanks to Josh for the fix.

Last edited by rmv; 11/14/22 07:29 PM. Reason: Solution

Rick Venable
computational chemist

Page 1 of 2 1 2

Moderated by  lennart, rmv 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5
(Release build 20201027)
Responsive Width:

PHP: 7.3.31-1~deb10u5 Page Time: 0.013s Queries: 37 (0.009s) Memory: 0.7921 MB (Peak: 0.8932 MB) Data Comp: Off Server Time: 2023-10-03 18:32:57 UTC
Valid HTML 5 and Valid CSS