GithubHelp home page GithubHelp logo

Comments (15)

keith923 avatar keith923 commented on July 19, 2024

from apbs.

ncclementi avatar ncclementi commented on July 19, 2024

Hi Keith,
Yes you are right I'm on a linux distribution, precisely I'm on Ubuntu 16.04.
What I did to determine the single thread was by launching htop in a separate terminal and looking how the cores were working. When I used the old version (apbs 1.4.1) all of them cores are at 100% while with the new version only one. Besides I time the runs and are slower.

I also tried doing export OMP_NUM_THREADS=4 and still not work. any clue what can be going on?

from apbs.

keith923 avatar keith923 commented on July 19, 2024

from apbs.

ncclementi avatar ncclementi commented on July 19, 2024

Thanks for the reply and looking forward to know what is going on :)

from apbs.

kozlac avatar kozlac commented on July 19, 2024

@ncclementi The reason the current version is not multithreading is that the compiler used to have multi-threading enabled by default which is not the case in newer versions. What you can do is compile APBS from source and enable multi-threading. If you need assistance doing this I'll be happy to help you.

from apbs.

ncclementi avatar ncclementi commented on July 19, 2024

@kozlac Are you guys planning on release a multi-thread binary version? I tried to build from source couple of times and I haven't been successful, and had troubles following the instructions since they are spread out, some in the master branch and others in the 1.4.1. In the build that is in master doesn't mention that you need to compile fetk, I found the instructions in the 1.4.1 branch but when I try to build I get always this error:

configure: error: GAMer libraries OR headers missing ...EXITING ON ERROR
make: *** No rule to make target 'install'.  Stop.
~/apbs/apbs-pdb2pqr/apbs/linux/fetk
---------------------- FETK-BUILD: STOPPING ----------------------

My steps so far were:

1- Clone the repo
2- git submodule init
3- git submodule update
4- In apbs-pdb2pqr/apbs --- > mkdir linux ----> cd linux
4- Copy the fetk folder that is in externals in the linux dir
5- ./fetk-build maloc punc gamer mc

from apbs.

wleagle avatar wleagle commented on July 19, 2024

I cannot run apbs1.5 in multi-threading mode either. I have tried apbs1.4.2 and 1.5, both of them run in a single cpu core. Then I have tried to compile apbs 1.5 from the source, with the command "make -jN", or using Ninja. None of these methods work.

from apbs.

kozlac avatar kozlac commented on July 19, 2024

Hi @wleagle, are you downloading the binaries from Sourceforge or GitHub? Also, on what platform are you trying to build from source?

from apbs.

wleagle avatar wleagle commented on July 19, 2024

from apbs.

kozlac avatar kozlac commented on July 19, 2024

@wleagle , I'll check the binaries in Sourceforge. In the meantime, there are binaries here in GitHub that should be multi-threading. Also, to build from source, you need to also initialize and update the submodules (via command git submodule init and git submodule update) after cloning the repo. Most likely the build is failing for this reason.

Once you have updated the submodules, you can then run cmake (pass -DENABLE_OPENMP flag to use threading) and then make. Some times the build fails when using the -jN option. If that happends, try to run just make with no flags.

Hopefully, this solves the issue. Please let me know if I can help any further. Thanks!!

from apbs.

wleagle avatar wleagle commented on July 19, 2024

from apbs.

sobolevnrm avatar sobolevnrm commented on July 19, 2024

@intendo - can you please look into this given that you are upgrading the cmake setup

from apbs.

intendo avatar intendo commented on July 19, 2024

By default, the ENABLE_OPENMP is turned on in CMake so the resulting binaries will be multithreaded.

from apbs.

namus avatar namus commented on July 19, 2024

By default, the ENABLE_OPENMP is turned on in CMake so the resulting binaries will be multithreaded.

For some reason, it is not the case for me. After running cmake, in the CMakeCache.txt file I found:
ENABLE_OPENMP:BOOL=OFF

I had to turn it ON to enable OpenMP. Also, the current binary downloaded from github doesn't run on multiple threads as mentioned in the original issue. So I guess the issue still persists, but can be resolved by compilation from source code after enabling OpenMP manually as mentioned above.

from apbs.

intendo avatar intendo commented on July 19, 2024

This may have been a result of the complicated CMake build system with all the external dependencies. We have revamped the CMake build system to use pre-built versions of all the external dependencies with greatly reduces the complexity (and time) to build APBS.

from apbs.

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.