You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cloud-infrastructure/ai-infra-gpu/ai-infrastructure/opm-flow-gpu/README.md
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,13 @@ Oracle Cloud Infrastructure offers GPU shapes for all kinds of workloads, includ
26
26
- BM with 8 GPUs, NVLink and RDMA cluster networking
27
27
- AMD MI300X 192GB
28
28
- BM with 8 GPUs, HIP and RDMA cluster networking
29
-
This tutorial covers NVIDIA GPU shapes only but can be easily adapted for AMD GPU shapes. A single A100 80 GB virtual machine (VM.GPU.A100.80GB.1) with a Cannonical Ubuntu 22.04 image is used.
30
29
31
-
It is necessary to install the NVIDIA CUDA Compiler (NVCC) to build Flow:
30
+
This tutorial covers both NVIDIA and AMD GPU shapes. More specifically, we use here:
31
+
- A 1 x A100 80 GB virtual machine (VM.GPU.A100.80GB.1),
32
+
- A 8 x MI300X 192 GB bare metal (BM.GPU.MI300X.8),
33
+
both with a Cannonical Ubuntu 22.04 image with respectively CUDA and ROCm preinstaled.
34
+
35
+
On the NVIDIA GPU shapes, it is necessary to install the NVIDIA CUDA Compiler (NVCC) to build Flow:
32
36
```
33
37
sudo apt-get install -y nvidia-cuda-toolkit
34
38
```
@@ -71,7 +75,7 @@ However, for `opm-simulators` it is necessary to turn off the `USE_GPU_BRIDGE` o
mkdir opm-simulators/build && cd opm-simulators/build
74
-
cmake .. -DUSE_GPU_BRIDGE=OFF
78
+
cmake .. -DUSE_GPU_BRIDGE=OFF # add the -DCONVERT_CUDA_TO_HIP=ON option for AMD GPUs
75
79
make
76
80
```
77
81
The following error might occur at the `make` stage:
@@ -134,7 +138,7 @@ Running the Flow simulator on one or more GPUs requires to use GPU-specific solv
134
138
}
135
139
}
136
140
```
137
-
To run the simulation, open datasets are available [here](git clone https://github.com/OPM/opm-data.git). For example, to run the Norne use case, simply execute:
141
+
To run the simulation, open datasets are available [here](https://github.com/OPM/opm-data.git). For example, to run the Norne use case, simply execute:
Here are a few comments to take into account when considering running Flow on GPUs:
150
154
* The options `--matrix-add-well-contributions=true` and `--threads-per-process=1` are recommended by OPM.
151
155
* Because of the import CPU/GPU traffic, running Flow on GPU is only relevant for models above a certain size (few hundreds of thousands of cells).
152
-
* Using a CUDA-aware version of Open MPI may improve the overall performance of the simulation.
156
+
* Using a CUDA-aware or ROCm-aware version of Open MPI may improve the overall performance of the simulation.
153
157
154
158
## External Links
155
159
156
160
*[The Open Porous Media Initiative](https://opm-project.org/)
157
-
*[Building CUDA-aware Open MPI](https://www.open-mpi.org/faq/?category=buildcuda)
161
+
*[The Best Public Cloud for Oil and Gas Reservoir Simulation](https://blogs.oracle.com/cloud-infrastructure/post/the-best-public-cloud-for-oil-and-gas-reservoir-simulation)
162
+
*[Building CUDA-aware Open MPI](https://www.open-mpi.org/faq/?category=buildcuda)
163
+
164
+
## License
165
+
166
+
Copyright (c) 2024 Oracle and/or its affiliates.
167
+
168
+
Licensed under the Universal Permissive License (UPL), Version 1.0.
169
+
170
+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.
0 commit comments