Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 666 Bytes

File metadata and controls

28 lines (25 loc) · 666 Bytes

SociX Model

Implemented with FLAMEGPU2.

Build & Run

./build-flamegpu.sh
source venv-Debug
pytest .
python sx.py

Debugging

cuda-gdb requires the venv to copy the python executables, i.e. this setup (default) is not sufficient:

$ ll
lrwxrwxrwx 1 ubuntu ubuntu    7 Apr  4 20:54 python -> python3
lrwxrwxrwx 1 ubuntu ubuntu   16 Apr  4 20:54 python3 -> /usr/bin/python3
lrwxrwxrwx 1 ubuntu ubuntu    7 Apr  4 20:54 python3.10 -> python3

To fix it, remove the symlink and copy the binary.

$ cd $VIRTUAL_ENV/bin
$ rm python3
$ cp /usr/bin/python3 ./
$ cuda-gdb --args python3 model.py -v