Unverified Commit 05211952 authored by Charlie Lin's avatar Charlie Lin Committed by GitHub
Browse files

Update README.md for GPU_TARGETS (#2423)

parent 16455a1a
...@@ -67,7 +67,7 @@ The following is a list of prerequisites for building MIGraphX. ...@@ -67,7 +67,7 @@ The following is a list of prerequisites for building MIGraphX.
3. Build MIGraphX source code: 3. Build MIGraphX source code:
```bash ```bash
rbuild build -d depend -B build rbuild build -d depend -B build -DGPU_TARGETS=$(/opt/rocm/bin/rocminfo | grep -o -m1 'gfx.*')
``` ```
Once completed, all prerequisites are in the `depend` folder and MIGraphX is in the `build` directory. Once completed, all prerequisites are in the `depend` folder and MIGraphX is in the `build` directory.
...@@ -106,7 +106,7 @@ the folder to `PATH`, or add the option `--prefix /usr/local` in the pip3 comman ...@@ -106,7 +106,7 @@ the folder to `PATH`, or add the option `--prefix /usr/local` in the pip3 comman
3. Configure CMake. If the prerequisites are installed at the default location `/usr/local`, use: 3. Configure CMake. If the prerequisites are installed at the default location `/usr/local`, use:
```bash ```bash
CXX=/opt/rocm/llvm/bin/clang++ cmake .. CXX=/opt/rocm/llvm/bin/clang++ cmake .. -DGPU_TARGETS=$(/opt/rocm/bin/rocminfo | grep -o -m1 'gfx.*')
``` ```
Otherwise, you need to set `-DCMAKE_PREFIX_PATH=$your_loc` to configure CMake. Otherwise, you need to set `-DCMAKE_PREFIX_PATH=$your_loc` to configure CMake.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment