Fix typos and formatting in GettingStarted.md (#68537)

Not too much to change here. Just found some issues with the flang
GettingStarted.md file and wanted to sort it out.
This commit is contained in:
Aiden Fox Ivey 2023-10-21 01:18:33 -04:00 committed by GitHub
parent 826c93f96e
commit 7df9b0c5b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,6 +53,7 @@ First, create the root directory and `cd` into it.
```bash
mkdir root
cd root
```
Now clone the source:
```bash
@ -233,6 +234,7 @@ cmake \
-DCMAKE_CUDA_COMPILER=nvcc \
-DCMAKE_CUDA_HOST_COMPILER=clang++ \
../runtime/
make -j FortranRuntime
```
@ -275,7 +277,7 @@ Normal `make -j check-flang` will work with such CMake configuration.
##### OpenMP target offload build
Only Clang compiler is currently supported.
```
```bash
cd llvm-project/flang
rm -rf build_flang_runtime
mkdir build_flang_runtime
@ -287,6 +289,7 @@ cmake \
-DCMAKE_CXX_COMPILER=clang++ \
-DFLANG_OMP_DEVICE_ARCHITECTURES="all" \
../runtime/
make -j FortranRuntime
```
@ -338,6 +341,7 @@ and the GCC library and tools that were used to build clang++.
CXX should include the full path to clang++
or clang++ should be found on your PATH.
```bash
export CXX=clang++
```