-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathmakefile
23 lines (17 loc) · 869 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all: install get-data install-turbojpeg
install-turbojpeg: get-turbojpeg build-turbojpeg
install:
pip3 install -r requirements.txt --no-cache-dir
pip3 uninstall pillow -y
CC="cc -mavx2" pip3 install --no-cache-dir -U --force-reinstall pillow-simd
get-turbojpeg:
cd datasets && rm -rf libjpeg-turbo && git clone https://github.com/libjpeg-turbo/libjpeg-turbo.git
cd datasets/libjpeg-turbo && git checkout 0565548 && git apply ../turbojpeg.diff
build-turbojpeg:
cd datasets/libjpeg-turbo && mkdir -p build
cd datasets/libjpeg-turbo/build && export CMAKE_PREFIX_PATH="$(shell pwd)/datasets/turbojpeg" && cmake -DCMAKE_INSTALL_PREFIX:PATH="$$CMAKE_PREFIX_PATH" -DCFLAGS="-march=native -O3" ..
cd datasets/libjpeg-turbo/build && make -j 96 && make install
get-data:
cd datasets && ./get_images.sh
test:
python3 -m pytest -n 4 --forked --dist loadgroup tests