@@ -53,16 +53,25 @@ cmake_minimum_required (VERSION 3.18)
5353!!/
5454!!/ Configure Compilers
5555!!/ -------------------
56+ !!/ If we are lucky, we do not need to specify compilers in the *cmake*
57+ !!/ configuration. However, specifying these compilers is preferred because
58+ !!/ programs are not always installed the way we wanted.
5659!!/ Set *CXX=...*, *CUDACXX=...*, and *FC=...* to specify the non-default C++,
5760!!/ CUDA, and Fortran compilers, respectively. These environmental variables
5861!!/ are supported by *cmake*.
62+ !!/ Do not use nvfortran.
5963!!/
6064!!/ This cmake script checks a custom environmental variable *ACC=...*
61- !!/ *only* for the GPU code.
65+ !!/ *only* for the OpenACC GPU code.
6266!!/ If not set, the building script will take a guess at the OpenACC compiler.
6367!!/ *ACC* will also be used as the C++ compiler. The value of *CXX* (if set)
6468!!/ will be neglected.
6569!!/
70+ !!/ The only place where a C compiler may be used in Tinker9 is on the old Mac
71+ !!/ computers that had Nvidia support. clang is hardwired in the cmake scripts
72+ !!/ to compile the Objective-C and C source files. Thus, *CC=...* is not worth
73+ !!/ setting in the cmake configuration.
74+ !!/
6675!!/ Configure Tinker9
6776!!/ -----------------
6877!!/ The following options are passed to CMake program with their default
@@ -150,6 +159,10 @@ endif ()
150159!!/ C++ syntax standard. The source code is c++11-compliant, and should have no
151160!!/ problems compiled with c++14. If set to *14* here, users should make sure
152161!!/ the compilers are c++14-compliant.
162+ !!/ In general, Users should not worry about the C++ standard for Tinker9.
163+ !!/ Using a more recent C++ standard to write the source code is unlikely
164+ !!/ to speed up the performance of Tinker9 and may harm the availability of
165+ !!/ Tinker9 to older machines.
153166!!/
154167]]
155168if (DEFINED ENV{std})
0 commit comments