Skip to content

Commit 07c8343

Browse files
committed
pytorch install instructions
1 parent 661895b commit 07c8343

4 files changed

Lines changed: 42 additions & 76 deletions

File tree

Exec/README

Lines changed: 0 additions & 72 deletions
This file was deleted.

Exec/README_md.pytorch

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# PyTorch (libtorch) Download and Setup
2+
3+
This guide downloads the libtorch CUDA 11.8 C++ distribution and unzips it in the same directory that contains `MagneX`, then renames the extracted folder to `libtorch_cuda`.
4+
5+
## Steps
6+
7+
1. Change to the parent directory of `MagneX`:
8+
9+
```bash
10+
cd <MAGNEX_PARENT_DIR>
11+
```
12+
13+
2. Download the libtorch archive with `wget`:
14+
15+
```bash
16+
wget https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.7.1%2Bcu118.zip
17+
```
18+
19+
3. Unzip the archive in the same directory:
20+
21+
```bash
22+
unzip libtorch-cxx11-abi-shared-with-deps-2.7.1+cu118.zip
23+
```
24+
25+
4. Rename the extracted folder to `libtorch_cuda`:
26+
27+
```bash
28+
mv libtorch libtorch_cuda
29+
```
30+
31+
## Result
32+
33+
After the steps above, you should have:
34+
35+
- `<MAGNEX_PARENT_DIR>/MagneX`
36+
- `<MAGNEX_PARENT_DIR>/pytorch_cuda`

Exec/README_md.sundials

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SUNDIALS Setup
2+
3+
Refer to https://amrex-codes.github.io/amrex/docs_html/TimeIntegration_Chapter.html
4+
for SUNDIALS installation, build, and usage instructions.
5+
6+
Make sure that `SUNDIALS_HOME` in the `GNUmakefile` points to the installation directory.

Exec/README_sundials

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)