Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lammps Installation problem❓ [QUESTION] #151

Closed
deleep225 opened this issue Feb 6, 2022 · 5 comments
Closed

lammps Installation problem❓ [QUESTION] #151

deleep225 opened this issue Feb 6, 2022 · 5 comments
Labels
question Further information is requested

Comments

@deleep225
Copy link

I am able install nequip, lammps and torch separately.
when i try to patch and reinstall the lammps i got the following error.
how to solve it ?

CMake Error in CMakeLists.txt:
Target "lammps" contains relative path in its
INTERFACE_INCLUDE_DIRECTORIES:

"MKL_INCLUDE_DIR-NOTFOUND"

CMake Error in CMakeLists.txt:
Target "lammps" contains relative path in its
INTERFACE_INCLUDE_DIRECTORIES:

"MKL_INCLUDE_DIR-NOTFOUND"

CMake Error in CMakeLists.txt:
Imported target "torch" includes non-existent path

"MKL_INCLUDE_DIR-NOTFOUND"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in CMakeLists.txt:
Imported target "torch" includes non-existent path

"MKL_INCLUDE_DIR-NOTFOUND"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.

@deleep225 deleep225 added the question Further information is requested label Feb 6, 2022
@deleep225 deleep225 changed the title Installation problem❓ [QUESTION] lammps Installation problem❓ [QUESTION] Feb 6, 2022
@simonbatzner
Copy link
Collaborator

Closing this since Deleep in personal communication reported this was not an issue anymore.

@chenruduan
Copy link

Hi @deleep225 @simonbatzner, Could any of you weigh in about the reasons/solutions for this? I think I am having the exact same issue on Mac. It seems it misses some MKL libs but I am not sure. Thanks!

@deleep225
Copy link
Author

deleep225 commented Feb 9, 2022 via email

@simonbatzner
Copy link
Collaborator

Hi @chenruduan, yes, just like @deleep225 said, you need to install the MKL libraries, on my system it was

conda install mkl-include

and then set it in the cmake command, so first get the dir where mkl.h lives:

find $HOME -name  mkl.h

and then set:

cmake ../cmake -DCMAKE_PREFIX_PATH=`python -c 'import torch;print(torch.utils.cmake_prefix_path)'` -DMKL_INCLUDE_DIR=path/to/that/dir/

Let me know if that works.

@simonbatzner simonbatzner reopened this Feb 9, 2022
@chenruduan
Copy link

@simonbatzner @deleep225 Thank you both! With that, I got the configuration step passed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants