Commit Graph

92 Commits

Author SHA1 Message Date
Arthur Meyre
760a0af39b chore: add torch as a proper requirement for the package
- we forgot to do that and it seems poetry chose versions of torch for all
OSes so should be good
- removed torchvision as we apparently never really used it
- make it work on linux and macOS
2021-12-15 17:59:16 +01:00
Umut
2e02c39a97 docs: create tensor operations tutorial 2021-12-15 18:00:19 +03:00
Arthur Meyre
bac4c8b549 chore: use all cpus for pytest 2021-12-14 12:08:08 +01:00
Arthur Meyre
d7f820ffb2 chore: fix pcc target to use all CPUs, unescaped $ may cause issues 2021-12-14 11:35:27 +01:00
Arthur Meyre
21eb2ac739 chore: fix benchmarks script 2021-12-13 16:34:58 +01:00
Arthur Meyre
1bfcea7540 chore: fix docker build typo 2021-12-13 13:49:49 +01:00
Arthur Meyre
df417b1aff chore: fix dev docker build on macOS
closes #1161
2021-12-13 11:31:26 +01:00
Arthur Meyre
64bcf30be0 chore: update dev dockerfile to have a user with the host uid and gid
closes #1149
2021-12-13 09:43:34 +01:00
Benoit Chevallier-Mames
bdb1140bee chore: lowercase for filenames 2021-12-09 19:04:16 +01:00
aquint-zama
7585d23396 chore: fix license / licence naming 2021-12-09 14:39:51 +01:00
Benoit Chevallier-Mames
b0acb0ab9c chore: move this doc file, this is not a tuto. 2021-12-09 14:34:07 +01:00
Benoit Chevallier-Mames
ce07e828d3 chore: remove useless targets in makefile
closes #1091
2021-12-09 10:02:55 +01:00
Umut
498dbff775 chore(deps): force reinstall compiler packages in setup_env 2021-12-08 14:09:52 +01:00
Benoit Chevallier-Mames
4a7d939bd0 docs: update the documentation
refs #1085
2021-12-08 10:36:05 +01:00
Arthur Meyre
681c865577 chore: make sure to exit with an error code in check licences if failure 2021-12-07 15:41:55 +01:00
aquint-zama
50a15885df chore: add help message with target and description to Makefile
usage: make help

close #1054
2021-12-07 10:01:58 +01:00
Arthur Meyre
6de5df77fd chore: less verbose check_licences
- only shows full log if it fails
- fix some targets where `$` was not properly escaped in Makefile
2021-12-02 17:55:02 +01:00
Arthur Meyre
8425656d75 chore: use volumes in docker
- allows to have persistent data and much faster access times on non linux
OSes
2021-11-30 18:13:10 +01:00
Benoit Chevallier-Mames
f7fab8b965 feat(deps): add a makefile target to check licences
refs #1003
2021-11-30 10:37:48 +01:00
Arthur Meyre
1b3f9aa048 chore: use pip package for docker
- comment out package-watcher as it's not compatible with the new docker
waiting on the compiler proper release workflow to update this
- update setup_env target to be docker and bare env friendly (workaround)
- update torch_requirements.txt

refs #809
2021-11-16 10:41:53 +01:00
Umut
d244bcace9 test(scripts): create measurement script tests 2021-11-15 12:45:55 +03:00
Arthur Meyre
2fd9f6c363 chore: automate make set_version some more
- stash before changing version
- commit changed files
- pop stash if anything was saved
2021-10-29 18:21:48 +02:00
Benoit Chevallier-Mames
23d4dead30 chore: remove unnecessary lambda in tests 2021-10-27 18:47:56 +02:00
Arthur Meyre
afb342aec3 chore: update Makefile targets to use && instead of ;
- lets target fail properly

closes #725
2021-10-25 10:01:41 +02:00
Umut
7f1222ed37 feat(benchmarks): add a way to check benchmark scripts without running them 2021-10-21 16:03:47 +03:00
Arthur Meyre
ab151091ce chore(scripts): add a target to trigger a release
- check the version coherence before creating the tag

refs #308
2021-10-19 15:37:09 +02:00
Benoit Chevallier-Mames
a8aafcb70a docs: autogenerate the list of supported functions
closes #410
2021-10-18 11:23:04 +02:00
Arthur Meyre
9571ad8e78 chore: add a Makefile target to grep pylintrc notes
- add a small helper python script to parse pylintrc
2021-10-18 10:54:51 +02:00
Arthur Meyre
bc2ae7be47 chore: disable pylint line too long in test_compile where necessary
- fix pylint targets for non package dirs
2021-10-15 16:02:20 +02:00
Arthur Meyre
2a1eb40bf2 test: use xdist to speed-up testing 2021-10-15 14:17:26 +02:00
Benoit Chevallier-Mames
2d866ae3c1 chore: show types and optional scopes for conventional commits. 2021-10-15 13:31:47 +02:00
Benoit Chevallier-Mames
17704da169 test: make our tests reproducible
by seeding random generators in python random or in numpy random
closes #546
2021-10-13 13:58:36 +02:00
Arthur Meyre
286dda79b2 fix: correct pytest command in Makefile 2021-10-12 11:18:00 +02:00
Arthur Meyre
8490f88227 chore: change coverage to have global infos
- have a small hack to dump pytest-cov report
2021-10-11 19:06:37 +02:00
Arthur Meyre
a595139448 chore: add changelog_helper to generate changelogs using semantic-release
- freeze semantic-release to specific version to keep internal APIs stable
- add gitpyhton for changelog_helper
- add a target to very easily create a changelog
2021-10-07 16:49:00 +02:00
Arthur Meyre
b363db6700 chore(tools): centralize all versions related utils in a single script
- update version to be semver compliant with the new tools
- update make targets and CI workflow to use the new version tool
- update release issue template
2021-10-07 16:49:00 +02:00
Arthur Meyre
05e1227269 chore: update env docker to have runtime lib path in LD_PRELOAD
- update the rest of the dockers, script and CI to stop setting LD_PRELOAD
2021-10-07 09:58:23 +02:00
Arthur Meyre
1fc9a36ab6 chore: upgrade nbmake to version without pathlib
- it breaks poetry installs with a deprecated dependency
- opened PR to solve: https://github.com/treebeardtech/nbmake/pull/48
- upgrade dependencies at the same time
- re-order installation steps for make setup_env to first install pip
2021-10-05 13:34:58 +02:00
Arthur Meyre
6fc6991839 chore: add __version__ and automated tools to update it
- also add a checker to verify that versions are in sync
2021-10-04 09:40:10 +02:00
Umut
ad95aba053 chore: run extract_machine_info.py before running the benchmark target, fix missing MACHINE_NAME variable exception 2021-09-27 17:59:48 +03:00
Arthur Meyre
2b5f152f23 fix(tests): disable warnings for notebook tests
- a warning in a package unrelated to the project made pytest fail
- run notebook tests without warnings as sources are already tested with
warnings treated as errors
2021-09-27 11:32:38 +02:00
Arthur Meyre
1a340e111e tools: add shell_lint target to lint .sh files
- update docker image to install shellcheck
- fix lint errors in files
2021-09-21 11:16:14 +02:00
Arthur Meyre
35011bd403 build: test codeblocks in CI 2021-09-20 17:24:16 +02:00
Arthur Meyre
5aa4ce1ef8 fix(build): test coverage in pytest 2021-09-20 17:24:16 +02:00
Arthur Meyre
dc5446d5bf fix(tools): force reinstall when installing setuptools
- prevents a poetry bug from breaking the package
2021-09-20 14:02:01 +02:00
Umut
7088f234cb chore: set notebook timeout to 3 hours 2021-09-16 17:18:48 +03:00
Arthur Meyre
157dcc44bc tools: add a script to easily upgrade python dependencies 2021-09-16 13:40:07 +02:00
Benoit Chevallier-Mames
1c82db2706 test: adding tests on script
closes #288
2021-09-16 12:04:32 +02:00
Umut
407e57c384 chore: make docker_publish_measurements target work better locally, improve daily benchmarks workflow 2021-09-16 10:54:57 +03:00
Arthur Meyre
5871d4e187 fix(tools): update Makefile for moved notebooks 2021-09-15 20:07:21 +02:00