Giter VIP home page Giter VIP logo

Comments (10)

hainm avatar hainm commented on July 30, 2024

Would this be a useful function in pytraj? If so, should I just clone the repo and make a PR?

Dear @sastrys1, feel free to make a PR. I will be happy to review it. Thanks.

Thanks for this tool, I really love using pytraj!!

Sweet. I am glad that pytraj is useful. Cheers.

from pytraj.

sastrys1 avatar sastrys1 commented on July 30, 2024

@hainm Do you have any advice on how to run pytraj with the changes I've made and then run the test code? I'm not able to build pytraj using the python setup.py install command because the libcpptraj installation is failing. Do I need to be able to build the entire thing to test changes?

from pytraj.

hainm avatar hainm commented on July 30, 2024

Do I need to be able to build the entire thing to test changes?

yeah, I think so. Otherwise, you can update the source code in the install path directly and make a PR here for CI to test.

because the libcpptraj installation is failing.

what's the error?

from pytraj.

sastrys1 avatar sastrys1 commented on July 30, 2024

This is the error:

Error: LAPACK/BLAS build/link failed: g++ -Wall -fopenmp -O3 -fPIC -std=gnu++11 -o testp testp.cpp -L/gstore/apps/imkl/2021.4.0/mkl/2021.4.0/lib/intel64/lib -llapack -L/gstore/apps/imkl/2021.4.0/mkl/2021.4.0/lib/intel64/lib -lblas -lgfortran -lpthread -fopenmp
Error: Error message follows:
Error: /gstore/apps/binutils/2.37-GCCcore-11.2.0/bin/ld.gold: error: cannot find -llapack
/gstore/apps/binutils/2.37-GCCcore-11.2.0/bin/ld.gold: error: cannot find -lblas
/local/tmp/ccQzyy18.o:testp.cpp:function main: error: undefined reference to 'dsyev_'
/local/tmp/ccQzyy18.o:testp.cpp:function main: error: undefined reference to 'dgemm_'
collect2: error: ld returned 1 exit status
Traceback (most recent call last):
File "/gstore/scratch/u/sastrys1/pytraj/scripts/install_libcpptraj.py", line 225, in
install_libcpptraj(compiler, build_flag, args.j)
File "/gstore/scratch/u/sastrys1/pytraj/scripts/install_libcpptraj.py", line 173, in install_libcpptraj
subprocess.check_call(cm, shell=True)
File "/gstore/apps/Python/3.9.6-GCCcore-11.2.0/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'bash configure --requires-flink -shared -noarpack --with-blas=/gstore/apps/imkl/2021.4.0/mkl/2021.4.0/lib/intel64 --with-lapack=/gstore/apps/imkl/2021.4.0/mkl/2021.4.0/lib/intel64 --with-bzlib=/gstore/apps/Python/3.9.6-GCCcore-11.2.0 --with-zlib=/gstore/apps/Python/3.9.6-GCCcore-11.2.0 -amberlib -openmp -nosanderlib gnu' returned non-zero exit status 1.

from pytraj.

hainm avatar hainm commented on July 30, 2024

thanks @sastrys1 for the report.
FYI that here is how we build libcpptraj and pytraj in github action:

git clone https://github.com/Amber-MD/cpptraj
cd cpptraj
export CPPTRAJHOME=`pwd`
yes | ./configure -shared -openmp gnu
make libcpptraj
cd ../
- name: Install pytraj
run: |
python setup.py install

List of dependency:

steps:
- name: Install prerequisite packages
run: |
sudo apt-get install gfortran
sudo apt-get install libbz2-dev
sudo apt-get install libblas-dev liblapack-dev
sudo apt-get install libfftw3-dev
sudo apt-get install clang
sudo apt-get install cmake-data cmake

from pytraj.

sastrys1 avatar sastrys1 commented on July 30, 2024

Decided to just make direct changes to my conda pytraj repo and test them, and then commit them. Does simply pushing to my forked repo trigger a travis build?

from pytraj.

hainm avatar hainm commented on July 30, 2024

from pytraj.

sastrys1 avatar sastrys1 commented on July 30, 2024

Made a PR. Thanks for the help.

from pytraj.

hainm avatar hainm commented on July 30, 2024

Thanks. Let's move our discussion to there #1641 then.

from pytraj.

hainm avatar hainm commented on July 30, 2024

oh, for the record:

you can copy the existing libcpptraj.so{dylib} from the installed pytraj to $CPPTRAJHOME/lib (CPPTRAJHOME points to source folder of cpptraj). Doing this way you don't need to rebuild cpptraj. (pytraj only needs libcpptraj and the header files (.h)).

from pytraj.

Related Issues (20)

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.