Comments (15)
from apbs.
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.
from apbs.
Thanks for the reply and looking forward to know what is going on :)
from apbs.
@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.
@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.
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.
Hi @wleagle, are you downloading the binaries from Sourceforge or GitHub? Also, on what platform are you trying to build from source?
from apbs.
from apbs.
@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.
from apbs.
@intendo - can you please look into this given that you are upgrading the cmake setup
from apbs.
By default, the ENABLE_OPENMP is turned on in CMake so the resulting binaries will be multithreaded.
from apbs.
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.
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)
- apbs-1.3 on arm
- Remove ChangeLog.md
- python3 compatibility? HOT 2
- APBS image only white HOT 1
- Error: 0xc000007b on win10 of apbs 3.4.1 (and maybe ^3.3.0) HOT 8
- Provide better examples and documentation for JSON and YAML input HOT 5
- Distribute apbs image via Docker Hub
- Update APBS Ubuntu Docker image
- UMFPack not found when compiling. HOT 3
- Remove wget dependence on METIS by generating a forked repo
- The meaning of .grd output
- NanoShaper integration HOT 2
- Units of ESP in DX file
- Hardcoding APBS multigrid data format output
- Electrostatic Potential surface
- Error: while loading shared libraries: libamd.so.1: cannot open shared object file: No such file or directory HOT 2
- fail to reproduce HOT 3
- Make Problem
- Question: How can I use a custom grid?
- https://server.poissonboltzmann.org/ issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apbs.