1- Build Tinker9 with CMake
2- ========================
1+ Build Tinker-GPU with CMake
2+ ===========================
33
44Quick Start
55-----------
@@ -9,7 +9,7 @@ an example to compile the GPU code without OpenACC:
99
1010.. code-block :: bash
1111
12- cd tinker9 && mkdir build
12+ cd tinker-gpu && mkdir build
1313 FC=gfortran compute_capability=70 gpu_lang=cuda cmake ..
1414 make
1515 make test
@@ -19,7 +19,7 @@ another example to compile the GPU code with both OpenACC and CUDA:
1919
2020.. code-block :: bash
2121
22- cd tinker9 && mkdir build
22+ cd tinker-gpu && mkdir build
2323 cmake -DCMAKE_Fortran_COMPILER=gfortran -DCOMPUTE_CAPABILITY=70 ..
2424 make
2525 make test
@@ -31,17 +31,17 @@ Configure CMake
3131---------------
3232You can skip this section if you are familar with CMake.
3333
34- Suppose the current working directory is */home/tinker9 * and we
34+ Suppose the current working directory is */home/tinker-gpu * and we
3535want to create a build directory called *build * in
36- */home/tinker9 *. We can do *mkdir build * then *cd build *.
36+ */home/tinker-gpu *. We can do *mkdir build * then *cd build *.
3737Because the top-level CMakeLists.txt file is in the parent directory,
3838if there was nothing else to configure, command *cmake .. * would generate
3939the Makefile. The alternative way is to specify the build and source
4040directories to CMake, e.g.,
4141
4242.. code-block :: bash
4343
44- cmake -B /home/tinker9/build -S /home/tinker9
44+ cmake -B /home/tinker9/build -S /home/tinker-gpu
4545
4646 Some CMake installations also provide a command line gui *ccmake * and a
4747simple gui program *cmake-gui * that can replace *cmake * in the commands
@@ -63,13 +63,13 @@ If not set, the building script will take a guess at the OpenACC compiler.
6363*ACC * will also be used as the C++ compiler. The value of *CXX * (if set)
6464will be neglected.
6565
66- The only place where a C compiler may be used in Tinker9 is on the old Mac
66+ The only place where a C compiler may be used in Tinker-gpu is on the old Mac
6767computers that had Nvidia support. clang is hardwired in the cmake scripts
6868to compile the Objective-C and C source files. Thus, *CC=... * is not worth
6969setting in the cmake configuration.
7070
71- Configure Tinker9
72- -----------------
71+ Configure Tinker-GPU
72+ --------------------
7373The following options are passed to CMake program with their default
7474values (if there is one). **-D ** is prefixed to the options. CMake provides
7575two standard ways to let users customize the values:
0 commit comments