-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestions to compile vina with AMD AOCC #345
Comments
Hi @xavgit
Could you elaborate, do you mean the compilation or the docking calculation is faster? |
Hi, For the fatal I can' t say nothing. Then I have make a very tiny benchmark with 10 molecules using time ( not the best tool ... ) to check the processing time. The results is With aocc clang++ compilation Taking into account the used cpu is a mobile one ( exhaustiveness = 32 ) , maybe is it's worth using aocc clang++. I should like to make a test with a Threadripper 1950X (a most powerful cpu ) but Thanks. Saverio |
Hi @xavgit
iostream is required for Vina. Was it not in the Include directories (you could do |
Ok. Thanks. Saverio |
Hi, A problem of the deb installation? Thanks. Saverio |
Hi @xavgit In the compilation codes you had: If clang++ can't compile with the corresponding iostream it was set up with, then yes maybe it's a problem with the configuration of the compiler :'( ... |
Hi, 1- Install aocc-4.2.0 2- Run the command: 3- Run the command: 4- Add "-c" in in the value of C_OPTIONS of the Makefile in /home/xxxx/sources/AutoDock-Vina-develop/build/linux/release to output more information. 5- Run the command: The compilation ends successfully and I can call vina without problem. The first output of make is the following: There is again : -I /usr/include. On Ubuntu 22.04 with the same procedure: Thanks. Saverio |
Hi @xavgit ! I may not be providing the most helpful suggestions, as I'm not able to test on a similar platform.. Just two things I was thinking about after looking at the inputs/outputs:
On ubuntu 20.04, you compiled with: but on 22.04, you did with: I usually don't have a space between -I and the path. If you have The last thing I would try is to include by full path. Like to replace
I'm unfamiliar with AOCC clang++ so i don't know the specific requirements. It seems like AOCC clang++ was set up with GCC 12. I feel that it's best to have the corresponding c++/12 header files, like from The experts in the AOCC (AMD) community might be able to provide better advice on this issue. If you are able to figure this out or have any suggestions on better ways to compile the program, please do let us know :)) thanks again for looking into this |
OK. Saverio |
Hi, Thanks. Saverio |
Hi,
on Ubuntu 20.04 I've compiled vina ,latest stable vina version , using the AMD AOCC.
In the Makefile I've modified only two lines:
GPP=/opt/AMD/aocc-compiler-4.2.0/bin/clang++
C_OPTIONS= -O3 -DNDEBUG -std=c++11 -march=znver3 -ftree-vectorize -flto -fopenmp
It runs without problems and is faster than the g++ compiled version.
These optimizations are safe?
Any suggestions to improve or make more specific the previous optimizations considering
the inner working of vina?
Thanks.
Saverio
The text was updated successfully, but these errors were encountered: