From 17b35a9a94faa3a2927debb650fc26ca2a3ed6be Mon Sep 17 00:00:00 2001 From: dcdemen Date: Tue, 8 Oct 2024 14:28:17 -0600 Subject: [PATCH] Added documentation for compiling with ROCm support for AMD GPUs --- docs/compiling.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/compiling.md b/docs/compiling.md index 1a867058..80f8db16 100644 --- a/docs/compiling.md +++ b/docs/compiling.md @@ -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 @@ -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. @@ -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 \ No newline at end of file +- [OpenTurbine_WARNINGS_AS_ERRORS] treats warnings as errors, including warnings from static analysis tools