forked from micromagnetics/magnum.fd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
24 lines (17 loc) · 858 Bytes
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Installation instructions are available at:
http://micromagnetics.org/magnum.fd
Basically, if all prerequisites are installed:
cd src/build # 1. enter build directory
./run-cmake.sh # 2. build setup
#./run-cmake-cuda.sh # build with 32-bit GPU support
#./run-cmake-cuda-64.sh # -or- build setup with 64-bit GPU support (needs installed CUDA libraries and compiler and a GPU with device capability 2.0+)
make # 3. compile everything
# With global install:
sudo make install
# Without install: Set your $PYTHONPATH variable to the src/ directory
# (which contains the magnum and magneto subdirectories).
export PYTHONPATH=xyz/src
How to check if everything went fine:
cd examples/sp4
./sp4.py # on CPU; or use -g0 or -G0 on GPU
./sp4.py --help