Coder Social home page Coder Social logo

robparrish / lightspeed Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 7.0 14.75 MB

Lightspeed: An ultralight C++/Python library for electronic structure theory development

License: Other

Makefile 0.10% Python 16.55% C++ 83.22% Cuda 0.11% Shell 0.01% C 0.01%

lightspeed's People

Contributors

robparrish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

lightspeed's Issues

Python 3 and OpenMM Error

Hi Rob,

I'm trying to run LS with OpenMM using Python 3. However, I get the following error
File "<stdin>", line 1, in <module> File "/global/software/OpenMM/7.1-intel-2016.0.109-CUDA-8.0.44/lib/python2.7/site-packages/simtk/openmm/__init__.py", line 19, in <module> from simtk.openmm.openmm import * File "/global/software/OpenMM/7.1-intel-2016.0.109-CUDA-8.0.44/lib/python2.7/site-packages/simtk/openmm/openmm.py", line 28, in <module> _openmm = swig_import_helper() File "/global/software/OpenMM/7.1-intel-2016.0.109-CUDA-8.0.44/lib/python2.7/site-packages/simtk/openmm/openmm.py", line 24, in swig_import_helper _mod = imp.load_module('_openmm', fp, pathname, description) File "/global/software/Anaconda3/5.2.0/lib/python3.6/imp.py", line 243, in load_module return load_dynamic(name, filename, file) File "/global/software/Anaconda3/5.2.0/lib/python3.6/imp.py", line 343, in load_dynamic return _load(spec) ImportError: dynamic module does not define module export function (PyInit__openmm)

Which is due to the conflict in the python version. The OpenMM module is loading python 2, while Lightspeed is expecting Python 3.

I've attempted to get around this by setting up my own lua module which contains a python openmm

help([[Python/C++ environment for electronic structure.]])whatis([[Python/C++ environment for electronic structure.]])

local root = "/home/caldaz/programs/1.03"

conflict("lightspeed")

load("libxc")

load("Boost/1.63.0-intel-2016.0.109-Anaconda3-5.2.0")
-- removed problematic OpenMM loads
--load("OpenMM")
--load("TeraChem/2018.07-intel-2016.0.109-MPICH2-1.4.1p1")
load("Anaconda3/5.2.0")

--- added necessary TeraChem libraries
local root2 = "/global/software/TeraChem/2018.07-intel-2016.0.109-MPICH2-1.4.1p1"
load("protobuf/3.2.0-intel-2016.0.109")
load("CUDA/8.0.44")
load("MPICH2/1.4.1p1-intel-2016.0.109")
--

prepend_path("CPATH", pathJoin(root2, "include"))
prepend_path("LD_LIBRARY_PATH", pathJoin(root2, "lib"))
prepend_path("LIBRARY_PATH", pathJoin(root2, "lib"))
prepend_path("PATH", pathJoin(root2, "bin"))
setenv("EBROOTTERACHEM", root2)
setenv("EBVERSIONTERACHEM", "2018.07")
setenv("TeraChem", root2)

prepend_path("LD_LIBRARY_PATH", pathJoin(root, "build/lib"))
prepend_path("LIBRARY_PATH", pathJoin(root, "build/lib"))
prepend_path("PATH", pathJoin(root, "build/bin"))
setenv("LIGHTSPEED_ROOT", root)

prepend_path("PYTHONPATH", pathJoin(root, "build/python"))
prepend_path("PYTHONPATH", root)
prepend_path("PYTHONPATH", pathJoin(root, "apps/aiscat"))
prepend_path("PYTHONPATH","/home/caldaz/.conda/envs/py3/lib/python3.6/site-packages/simtk")

This successfully get's past the openmm problem above, however it now complains about

Traceback (most recent call last):
  File "test.py", line 61, in <module>
    E= ref.compute_energy()
  File "/home/caldaz/programs/1.03/est/rhf.py", line 430, in compute_energy
    self.dft_functional = ls.Functional.build(self.options['dft_functional'])
RuntimeError: LibXCFunctionalImpl: No LibXC - should not construct

Any help on compiling LS with Python 3 would be appreciated!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.