-
Notifications
You must be signed in to change notification settings - Fork 9
Installing pyamgx and cupy on windows
fizmat edited this page Mar 25, 2020
·
6 revisions
Step-by-step install guide, works on Windows 10
python >=3.6,<=3.7
Latest CUDA (1.0.2) works now.
Use Visual Studio 2017, AMGX does not compile with VS2019: https://github.com/NVIDIA/AMGX/issues/79
pip install scipy cython
Just pip install cupy-cuda101
See also https://github.com/NVIDIA/AMGX#-building
- From empty AMGX build dir (for example AMGX/build):
- in powershell
& "C:\Program Files\CMake\bin\cmake.exe" -G "Visual Studio 15 2017 Win64" ..
- in cmd
"C:\Program Files\CMake\bin\cmake.exe" -G "Visual Studio 15 2017 Win64" ..
- Open build/AMG.sln in VS 2017
- Switch build configuration from Debug to Release (https://github.com/NVIDIA/AMGX/issues/43)
- Build amgx.sh project, it is enough to install pyamgx.
See also https://pyamgx.readthedocs.io/en/latest/install.html
- in setup.py comment out lines 42-44 (
runtime_library_dirs = ...
): https://github.com/shwina/pyamgx/issues/16 - in setup.py add in setup arguments (line 54)
data_files=[('lib\\site-packages\\', [AMGX_BUILD_DIR + "\\amgxsh.dll"])]
- in cmd
- don't forget to activate your ef_python venv
SET AMGX_DIR="your AMGX source dir"
SET AMGX_BUILD_DIR="your AMGX build dir\Release"
- pip install "your pyamgx dir"
Find us on VKontakte Facebook ResearchGate
- Home
- Motivation and Goals
- Alternatives
- Current Features and Development Roadmap
- What It Is and How It Works
- Preprints and Published Works
- Installation
- Quick start
-
Examples
Single Particle- Single Particle in Free Space
- Single Particle In Uniform Magnetic Field
-
Single Particle In Uniform Electric Field
Electron Beams - Ribbon Beam Contour
- Contour of Ribbon Beam In Uniform Magnetic Field
- Axially Symmetric Beam Contour
- Contour of Axially Symmetric Beam In Uniform Magnetic Field
-
Potential well of cylindrical beam in tube
Other - Conducting Sphere Potential
- Child-Langmuir Law for Planar Diode
- FreeCAD and ParaView
- Code structure
- Supported Config File Sections