-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (28 loc) · 1.41 KB
/
Makefile
File metadata and controls
42 lines (28 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.PHONY: all python-install python-install-development python-install-editable clang-format clang-tidy mypy ruff flake8 pylint pytest pytest-coverage
all: clang-tidy mypy ruff flake8 pylint pytest-coverage
python-install:
pip3 install cuda-toolkit[cudart,nvcc,nvjpeg]==12.4.1
pip3 install .
python-install-development:
pip3 install cuda-toolkit[cudart,nvcc,nvjpeg]==12.4.1
pip3 install .[development]
python-install-editable:
pip3 install cuda-toolkit[cudart,nvcc,nvjpeg]==12.4.1
pip3 install -e .[development]
clang-format:
clang-format -i $(shell find ./src/cpp/ -name '*.hpp' -o -name '*.cpp')
clang-tidy:
clang-tidy $(shell find ./src/cpp/ -name '*.hpp' -o -name '*.cpp') -- -I$(shell python3 -c "import sysconfig; print(sysconfig.get_path('include'))") -I$(shell python3 -c "import numpy; print(numpy.get_include())") -I$(shell python3 -c "import sysconfig; print(f'{sysconfig.get_paths()['purelib']}/nvidia/nvjpeg/include')") -I$(shell python3 -c "import sysconfig; print(f'{sysconfig.get_paths()['purelib']}/nvidia/cuda_runtime/include')") -I$(shell python3 -c "import sysconfig; print(f'{sysconfig.get_paths()['purelib']}/nvidia/cuda_nvcc/include')")
mypy:
mypy ./src/python/
ruff:
ruff check ./src/python/
flake8:
flake8 ./src/python/
pylint:
pylint ./src/python/
pytest:
pytest
pytest-coverage:
coverage run -m pytest ./tests/python
coverage report --show-missing