File tree Expand file tree Collapse file tree 2 files changed +15
-367
lines changed
Expand file tree Collapse file tree 2 files changed +15
-367
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -101,7 +101,19 @@ cmake -DCMAKE_INSTALL_PREFIX=/my_path \
101101Note that the command assumes that QUDA is compiled with ` CUDA` support. AMD GPU
102102are 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
127139options are defined by the variable ` CMAKE_C_FLAGS` and ` CMAKE_CXX_FLAGS` . CUDA and HIP compilations options are controlled by their
You can’t perform that action at this time.
0 commit comments