Skip to content

Commit

Permalink
Merge branch 'pyscf:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
wxj6000 authored Nov 9, 2023
2 parents dfba089 + 564b3fe commit 5579b3c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,40 @@ Installation
--------

For **CUDA 11.x**
```
```sh
pip3 install gpu4pyscf-cuda11x
```
and install cutensor
```
```sh
python -m cupyx.tools.install_library --cuda 11.x --library cutensor
```

For **CUDA 12.x**
```
```sh
pip3 install gpu4pyscf-cuda12x
```
and install cutensor
```
```sh
python -m cupyx.tools.install_library --cuda 12.x --library cutensor
```

Compilation
--------
The package provides ```dockerfiles/compile/Dockerfile``` for creating the CUDA environment. One can compile the package with
```
```sh
sh build.sh
```
This script will automatically download LibXC, and compile it with CUDA. The script will also build the wheel for installation. The compilation can take more than 5 mins. Then, one can either install the wheel with
```
```sh
cd output
pip3 install gpu4pyscf-*
```
or simply add it to ```PYTHONPATH```
```
```sh
export PYTHONPATH="${PYTHONPATH}:/your-local-path/gpu4pyscf"
```
Then install cutensor for acceleration
```
```sh
python -m cupyx.tools.install_library --cuda 11.x --library cutensor
```

Expand All @@ -64,7 +64,7 @@ Limitations

Examples
--------
```
```python
import pyscf
from gpu4pyscf.dft import rks

Expand Down

0 comments on commit 5579b3c

Please sign in to comment.