Skip to content

Commit 78306fc

Browse files
author
Mathieu Taillefumier
committed
Update the README.md
1 parent b5efd94 commit 78306fc

File tree

2 files changed

+15
-367
lines changed

2 files changed

+15
-367
lines changed

README

Lines changed: 0 additions & 364 deletions
This file was deleted.

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,19 @@ cmake -DCMAKE_INSTALL_PREFIX=/my_path \
101101
Note that the command assumes that QUDA is compiled with `CUDA` support. AMD GPU
102102
are also supported after replacing `-DTM_USE_CUDA=ON` with
103103
`-DTM_USE_HIP=ON` and compiling `QUDA` with `HIP` support. The ROCM architecture is defined by the variable
104-
`CMAKE_HIP_ARCHITECTURES=gfxxxx`.
104+
`CMAKE_HIP_ARCHITECTURES=gfxxxx`. An extra parameter `-DCMAKE_CXX_COMPILER=clang++` is needed because `QUDA` use the `ROCM clang++`
105+
compiler internally and the build will fail if `gcc` or any other compiler is used during
106+
link time. This option only affects the linking behavior not the compilation. The cmake command line for HIP/ROCM support is then
107+
```bash
108+
cmake -DCMAKE_INSTALL_PREFIX=/my_path \
109+
-DCMAKE_PREFIX_PATH="/my_c_line_path;/my_lemon_path;/my_quda_path" \
110+
-DTM_USE_MPI=ON \
111+
-DTM_USE_LEMON=ON \
112+
-DTM_USE_QUDA \
113+
-DTM_USE_HIP=ON \
114+
-DCMAKE_HIP_ARCHITECTURES=gfx90a \
115+
-DCMAKE_CXX_COMPILER=/opr/rocm/bin/clang++ ..
116+
'''
105117
106118
`QPhiX` and/or `DDalphaAMG` support can be added with
107119
@@ -120,8 +132,8 @@ cmake -DCMAKE_INSTALL_PREFIX=/my_path \
120132
-DTM_USE_OMP=ON ..
121133
'''
122134
123-
`QPhiX` cmake config support is incomplete and requires both the QPhiX
124-
and QMP installation directories to work properly.
135+
`QPhiX` cmake config support is incomplete and requires both the `QPhiX`
136+
and `QMP` installation directories to work properly.
125137
126138
`CMake` has several relevant specific options that control the build. Compiler
127139
options are defined by the variable `CMAKE_C_FLAGS` and `CMAKE_CXX_FLAGS`. CUDA and HIP compilations options are controlled by their

0 commit comments

Comments
 (0)