Skip to content

Commit

Permalink
fix CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yangeorget committed Sep 26, 2024
1 parent d514564 commit 2f7c10a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ sphinx-build -M html docs/source docs/output
## Performance
### How to profile the code
```bash
NUMBA_DISABLE_JIT=1 ./scripts/bash/profile.sh tests/examples/test_queens.py | more
NUMBA_DISABLE_JIT=1 python -m "cProfile" -s time -m nucs.examples.queens | more
```

### How to measure the performance
```bash
time NUMBA_CACHE_DIR=.numba/cache PYTHONPATH=. python tests/examples/test_queens.py -n 12
time NUMBA_CACHE_DIR=.numba/cache PYTHONPATH=. python -m nucs.examples.queens -n 12
```

## Package
Expand Down
3 changes: 3 additions & 0 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
# Engine
- choice points pruning
- backtrackable propagator __state__
- backtrackable list of entailed propagators
- implement decision variables
- disable offsets when not useful

# Numba
- use prange with parallel=True
Expand All @@ -26,3 +28,4 @@
- installation : put links to examples (and not CSPLIB)
- examples : link to github
- improve usage of rst
- document environment variables
2 changes: 1 addition & 1 deletion nucs/examples/queens/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("-n", type=int, default=12)
parser.add_argument("-n", type=int, default=10)
args = parser.parse_args()
problem = QueensProblem(args.n)
solver = BacktrackSolver(problem)
Expand Down
4 changes: 0 additions & 4 deletions scripts/bash/profile.sh

This file was deleted.

0 comments on commit 2f7c10a

Please sign in to comment.