Skip to content

Commit a587754

Browse files
authored
Update buildwithcmake.rst
1 parent ff8f83f commit a587754

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

doc/manual/m/install/buildwithcmake.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Build Tinker9 with CMake
2-
========================
1+
Build Tinker-GPU with CMake
2+
===========================
33

44
Quick 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
---------------
3232
You 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
3535
want 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*.
3737
Because the top-level CMakeLists.txt file is in the parent directory,
3838
if there was nothing else to configure, command *cmake ..* would generate
3939
the Makefile. The alternative way is to specify the build and source
4040
directories 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
4747
simple 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)
6464
will 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
6767
computers that had Nvidia support. clang is hardwired in the cmake scripts
6868
to compile the Objective-C and C source files. Thus, *CC=...* is not worth
6969
setting in the cmake configuration.
7070

71-
Configure Tinker9
72-
-----------------
71+
Configure Tinker-GPU
72+
--------------------
7373
The following options are passed to CMake program with their default
7474
values (if there is one). **-D** is prefixed to the options. CMake provides
7575
two standard ways to let users customize the values:

0 commit comments

Comments
 (0)