Compile Tinker9 on Bridges2 #175
Replies: 4 comments 4 replies
-
The error you saw about the missing "macro.hh" file is because the default Fortran compiler is set to "pgf95" (under the nvhpc installation) for some reason. This compiler has a long-lasting bug so that it cannot be used for Tinker9. Please set the environmental variable "FC=your_gfortran" to overwrite the default setting. Another thing is, CUDACXX is supposed to be set to the |
Beta Was this translation helpful? Give feedback.
-
An error message is added to help diagnose this issue. (In commit 7714484) |
Beta Was this translation helpful? Give feedback.
-
Zhi,
Thanks for the tips, finally got tinker9 GPU to compile. However, when I went to run the tests, I get the following error:
/ocean/projects/bio200023p/bmertz/binaries/tinker9/src/test/test_info.cpp:8: FAILED:
due to unexpected exception with message:
Errno 35 (CUDA driver version is insufficient for CUDA runtime version) at /
ocean/projects/bio200023p/bmertz/binaries/tinker9/src/cudart/gpu_card.cpp:288
===============================================================================
test cases: 1 | 1 failed
assertions: 1 | 1 failed
make[3]: *** [CMakeFiles/test.dir/build.make:70: CMakeFiles/test] Error 1
make[2]: *** [CMakeFiles/Makefile2:403: CMakeFiles/test.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:410: CMakeFiles/test.dir/rule] Error 2
make: *** [Makefile:215: test] Error 2
Is this simply because I'm running on the login node instead of submitting to a GPU node? If so, I'll submit to the GPU queue. Just wanted to make sure I wasn't missing anything. Thanks again for all your help today.
Blake
Helen C. Levitt Visiting Professor
Carver College of Medicine
University of Iowa
…-----------------------------------------------------------
Associate Professor
C. Eugene Bennett Department of Chemistry
WVU Cancer Institute
Director of Research Computing
(304) 293-9166
www.mertzlab-biophysics.com<http://www.mertzlab-biophysics.com/index.html>
https://docs.hpc.wvu.edu/
"Life is not easy for any of us. But what of that? We must have perseverance and above all confidence in ourselves. We must believe that we are gifted for something and that this thing must be attained." Marie Curie
"Start by doing what's necessary; then do what's possible; and suddenly you are doing the impossible." St. Francis of Assisi
________________________________
From: Zhi Wang ***@***.***>
Sent: Wednesday, November 24, 2021 2:32 PM
To: TinkerTools/tinker9 ***@***.***>
Cc: Blake Mertz ***@***.***>; Author ***@***.***>
Subject: Re: [TinkerTools/tinker9] Compile Tinker9 on Bridges2 (Discussion #175)
The error you saw about the missing "macro.hh" file is because the default Fortran compiler is set to "pgf95" (under the nvhpc installation) for some reason. This compiler has a long-lasting bug so that it cannot be used for Tinker9. Please set the environmental variable "FC=your_gfortran" to overwrite the default setting.
Another thing is, CUDACXX is supposed to be set to the nvcc under the cuda/11.1.1 installation, not the one under the nvhpc. However, this may not be a problem for cmake 3.20. This is not allowed for older cmake versions because they don't have support for the nvhpc compilers. If there is no problem with 3.20, I would not worry about it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#175 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKWU76CLTEGJCKTTMDKFAWTUNVDUNANCNFSM5IWQHB2A>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Quick update -- I'm running Tinker in interactive mode on Bridges2 GPU. I'm completely befuddled by the header of my log file though, as the code declares itself to be tinker version 8.10.1: Tinker --- Software Tools for Molecular DesignVersion 8.10.1 October 2021Copyright (c) Jay William Ponder 1990-2021All Rights Reserved########################################################################## Primary GPU package : CUDA GPU Device : Setting Device ID to 0 from GPU utilization This was the command I executed on my lipid system: Is this simply an error or am I actually running tinker8? Because I cloned the source code from Tinker9. And my simulations I've been running on Argon at U. of Iowa have Tinker9 in the header of all of my log files. Thanks. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to compile T9 (CPU and GPU) on Bridges2 (they have V100 GPUs). Below is my environment setup:
After cloning tinker9 from git and running git submodule update --init to update the fortran source files, I created separate build sub-directories for the cpu and gpu codes (cpu-t9 and gpu-t9 respectively).
When I ran cmake to compile the CPU-only version of T9: "cmake -DHOST=ON ..", my compile made it to 74% and then failed. Below is my error:
[bmertz@bridges2-login012 cpu-t9]$ make -j
[ 0%] Building CXX object ext/interface/CMakeFiles/tinkerObjCpp.dir/cpp/tinker/routines.cpp.o
[ 0%] Building CXX object ext/interface/CMakeFiles/tinkerObjCpp.dir/cpp/tinker/modcpp.cpp.o
[ 0%] Built target __t9_copy_shell_exe
"/ocean/projects/bio200023p/bmertz/binaries/tinker9/ext/interface/cpp/tinker/routines.cpp", line 1: catastrophic error: cannot open source file "macro.hh"
#include "macro.hh"
^
1 catastrophic error detected in the compilation of "/ocean/projects/bio200023p/bmertz/binaries/tinker9/ext/interface/cpp/tinker/routines.cpp".
Compilation terminated.
"/ocean/projects/bio200023p/bmertz/binaries/tinker9/ext/interface/cpp/tinker/detail/action.hh", line 3: catastrophic error: cannot open source file "macro.hh"
#include "macro.hh"
^
1 catastrophic error detected in the compilation of "/ocean/projects/bio200023p/bmertz/binaries/tinker9/ext/interface/cpp/tinker/modcpp.cpp".
Compilation terminated.
make[2]: *** [ext/interface/CMakeFiles/tinkerObjCpp.dir/build.make:75: ext/interface/CMakeFiles/tinkerObjCpp.dir/cpp/tinker/routines.cpp.o] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [ext/interface/CMakeFiles/tinkerObjCpp.dir/build.make:88: ext/interface/CMakeFiles/tinkerObjCpp.dir/cpp/tinker/modcpp.cpp.o] Error 2
make[1]: *** [CMakeFiles/Makefile2:461: ext/interface/CMakeFiles/tinkerObjCpp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 74%] Built target tinkerObjF
make: *** [Makefile:91: all] Error 2
It appears that macro.hh is missing in the cpp portion of the directory tree (it is also located in the ifort and gfortran portions of the tree). Should I be pointing the compiler to a different location for macro.hh or generate a macro.hh file? Thanks.
ADDITIONAL NOTE: I get the same error when trying to compile the GPU version of the code after running "cmake -DCOMPUTE_CAPABILITY=70 .."
Beta Was this translation helpful? Give feedback.
All reactions