Installation¶
Steps¶
Install Python >= 3.9
Get the most recent PyGRANSO package (including examples and requirements file):
git clone https://github.com/sun-umn/PyGRANSO.git cd PyGRANSO
Install PyGRANSO solver from PyPI:
pip install pygranso
Install Dependencies from PyPI:
OS: Linux OR Windows; Compute Platform: CUDA:
pip install -r requirements.txt -f https://download.pytorch.org/whl/cu111/torch_stable.html
OS: Linux; Compute Platform: CPU:
pip install -r requirements_linux_cpu.txt -f https://download.pytorch.org/whl/cpu/torch_stable.html
OS: Mac OR Windows; Compute Platform: CPU:
pip install -r requirements_cpu.txt
(CUDA) Run test to make sure the dependency installation is correct:
python test_cuda.py
(CPU) Run test to make sure the dependency installation is correct:
python test_cpu.py
Check the Examples section in the documentation website to get started.