Code Monkey home page Code Monkey logo

alpscore-python's Introduction

Build Status

The ALPSCore project, based on the ALPS (Algorithms and Libraries for Physics Simulations) project, provides generic algorithms and utilities for physics problems. It strives to increase software reuse in the physics community.

alpscore-python's People

Contributors

aeantipov avatar egull avatar galexv avatar gamperl avatar gcarcassi avatar shinaoka avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

shinaoka

alpscore-python's Issues

boost/python/numeric.hpp isn't in boost-python-libs-1.65.1

/usr/ports/science/py-alps/work/ALPSCore-Python-40d9ca2/hdf5/src/./hdf5.hpp:25:10: fatal error: 'boost/python/numeric.hpp' file not found
#include <boost/python/numeric.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~

Based on the internet search, it was probably present in boost-libs-1.55.0.

Linker command failed with boost::mpi

Hello,

I am trying to build this module on my laptop (Mac OS X 10.11.16) with mpicxx-openmpi-clang38 (macports) and boost 1.59.0 (with the boost mpi library).

I got the following error message, indicating that the boost mpi library is not linked.
After exploring the ALPSCore libraries, I found that the target libraries are actually set here:
https://github.com/ALPSCore/ALPSCore-Python/blob/master/common/cmake/ALPSCommonModuleDefinitions.cmake#L178

It seems that we need to add boost::mpi as well.
Is my understanding correct?

Best,
Hiroshi

======================================================================
[ 26%] Linking CXX shared module pymcbase_c.so
cd /Users/hiroshi/build/alpscore-python/mc && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/pymcbase_c.dir/link.txt --verbose=1
/opt/local/bin/mpicxx-openmpi-clang38 -std=c++14 -O3 -DNDEBUG -bundle -Wl,-headerpad_max_install_names -o pymcbase_c.so CMakeFiles/pymcbase_c.dir/src/pymcbase.cpp.o /usr/lib/libpython2.7.dylib /opt/ALPSCore/lib/libalps-mc.dylib /opt/ALPSCore/lib/libalps-gf.dylib /opt/boost_1_59_0/lib/libboost_python.dylib /opt/ALPSCore/lib/libalps-accumulators.dylib /opt/ALPSCore/lib/libalps-params.dylib /opt/boost_1_59_0/lib/libboost_serialization.dylib /opt/ALPSCore/lib/libalps-hdf5.dylib /opt/ALPSCore/lib/libalps-utilities.dylib /opt/boost_1_59_0/lib/libboost_chrono.dylib /opt/boost_1_59_0/lib/libboost_filesystem.dylib /opt/boost_1_59_0/lib/libboost_system.dylib /opt/boost_1_59_0/lib/libboost_program_options.dylib /opt/local/lib/libhdf5_cpp.dylib /opt/local/lib/libhdf5.dylib /usr/lib/libz.dylib /usr/lib/libdl.dylib /usr/lib/libm.dylib -Wl,-rpath,/opt/boost_1_59_0/lib
Undefined symbols for architecture x86_64:
"boost::mpi::communicator::communicator()", referenced from:
boost::python::objects::value_holderalps::pymcbase::value_holder<boost::python::objects::reference_to_valueboost::python::dict, unsigned long>(_object*, boost::python::objects::reference_to_valueboost::python::dict, unsigned long) in pymcbase.cpp.o
boost::python::objects::value_holderalps::pymcbase::value_holder<boost::python::objects::reference_to_valueboost::python::dict >(_object*, boost::python::objects::reference_to_valueboost::python::dict) in pymcbase.cpp.o

Incompatibility with the latest alpscore

"make test" does not succeed with the latest ALPSCore.
Typical errors are shown below.
Do you reproduce this problem?

make test
Running tests...
/opt/local/bin/ctest --force-new-ctest-process
Test project /Users/hiroshi/build/alpscore-python
Start 1: hdf5
1/3 Test #1: hdf5 .............................***Failed 0.80 sec
============================= test session starts ==============================
platform darwin -- Python 2.7.13, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
rootdir: /Users/hiroshi, inifile:
collected 13 items

../../../ClionProjects/ALPSCore-Python/test/hdf5_test.py .....FFFFFFFF

=================================== FAILURES ===================================
_________________________________ test_complex _________________________________

oar = <alps.alps_c.pyhdf5_c.hdf5_archive_impl object at 0x10fff2470>

def test_complex(oar):
    oar["/cmplx"]=complex(1.5,2.25)
  check_scalar(oar, "/cmplx", complex, complex(1.5,2.25))

../../../ClionProjects/ALPSCore-Python/test/hdf5_test.py:111:


ar = <alps.alps_c.pyhdf5_c.hdf5_archive_impl object at 0x10fff2470>
name = '/cmplx', vtype = <type 'complex'>, expected_val = (1.5+2.25j)

def check_scalar(ar,name,vtype,expected_val):
    ext=ar.extent(name)
    assert len(ext)==1 #, ("Invalid extent length for scalar \"%s\"" % name)
    assert ext[0]==1 #, ("Invalid extent value for scalar \"%s\"" % name)
  x = ar[name]

E SystemError: NULL result without error in PyObject_Call

../../../ClionProjects/ALPSCore-Python/test/hdf5_test.py:22: SystemError

gf library

Hello,
Do you have any plans to implement a Python interface of the gf library?
I am asking this because we're planning to implement a Python DMFT framework based on ALPSCore.

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.