Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added documentation for compiling with ROCm support for AMD GPUs #286

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion docs/compiling.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ If building for CUDA platforms, Trilinos must be configured with CUDA support
spack install trilinos~mpi~epetra+basker+cuda+cuda_rdc
```

If building for ROCm platforms, Trilinos must be configured with ROCm support
```bash
spack install trilinos~mpi~epetra+basker+rocm
```

### Load the TPLs into your environment
```bash
spack load googletest
Expand Down Expand Up @@ -93,6 +98,11 @@ If Trilinos was built with CUDA support, you will need to use the nvcc_wrapper f
cmake ../ -DCMAKE_CXX_COMPILER=nvcc_wrapper
```

If Trilinos was built with ROCm support, you will need to use the hipcc program for compilation
```bash
cmake ../ -DCMAKE_CXX_COMPILER=hipcc
```

### Build and Test
At this time, OpenTurbine builds several shared libraries by default.
In order for thier unit tests to pass, they will have to be copied into the directory where your tests are run.
Expand Down Expand Up @@ -125,4 +135,4 @@ OpenTurbine has several build options which can be set either when running cmake
- [OpenTurbine_ENABLE_TESTS] builds OpenTurbine's test suite
- [OpenTurbine_ENABLE_UNITY_BUILD] uses unity builds to potentially decrease compilation time
- [OpenTurbine_ENABLE_VTK] builds OpenTurbine with VTK support for visualization in tests. Will need the VTK TPL to be properly configured
- [OpenTurbine_WARNINGS_AS_ERRORS] treats warnings as errors, including warnings from static analysis tools
- [OpenTurbine_WARNINGS_AS_ERRORS] treats warnings as errors, including warnings from static analysis tools
Loading