This thread was continued in private email for a bit, so I’ll post the important messages below and we’ll continue it on the google group from now on…
Thank you again for opening up this conversation.
Before I get to my questions concerning the construction of my MS-MEAM via
KIM, I am recompiling the KIM API so that is works with LAMMPS in parallel.
In my search to do this, I read in the INSTALL file that KIM_LINK should be
set to “dynamic-link”. Having it previously set to “dynamic-load” seemed to
have allowed for problems with running LAMMPS in parallel with the KIM API.
So, having set KIM_LIN = dynamic-link, and compiling, I get the following
http://gcc.linux.64bit.dynamic-link.so/: undefined reference to
standard_kim_str_len' ../libkim-api-v1.7.0+GCC.linux.64bit.dynamic-link.so <http://gcc.linux.64bit.dynamic-link.so/>: undefined reference to standard_kim_str’
collect2: error: ld returned 1 exit status
make: *** [kim-api-v1-descriptor-file-match] Error 1
make: *** [utils-all] Error 2
Seemingly, I can narrow this down to lines 160 and 161 in the Makefile in
the /usr/local/kim-api-v1.7.0/src directory.
Some assistance at this point would be much appreciated.
The goal of this is to be able to compile KIM to run LAMMPS in parallel.
Beyond this point, I will ask questions considering the KIM MS-MEAM model
that I am attempting to build.
Thank you in advance,
First, although there are some theoretical advantages to dynamic-link
mode, all of the modes (dynamic-link, dynamic-load, and static-link) should
work just fine with LAMMPS in parallel. (If you test this out and have
problems, we would be very interested in the details and will be happy to
So, the simple solution is to just go back to using dynamic-load.
If you want to get dynamic-link working. My suggestions is to fist try a
clean compile. A ‘make clean’ from the top dir should get you to a clean
source state; but starting from a source dir cleanly extracted from the
kim-api-v*.tgz tarball is guaranteed to work.
Then do a ‘make QUELL=’ and if the problem persists, send the output
along. (This will produce additional output including the compile command
lines which will help in the debugging.)
I just got your e-mail. I did a ‘make clean’, reinstalled (with
dynamic-link set), and ran the examples, and they all worked! I don’t know
why it would not work previously, but it seems to work now!
Thank you. Please give me a day or two to organize thoughts concerning the
MS-MEAM KIM, which is the next step.