forked from fzyzcjy/torch_memory_saver
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 674 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (27 loc) · 674 Bytes
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
# This file is for development usage
SHELL=/bin/bash
.PHONY:reinstall
reinstall:
rm -rf ./*.so ./build
pip uninstall torch_memory_saver -y
pip install --no-cache-dir .
# Release
# sudo make clean
# sudo make build-wheel
# sudo make build-sdist
# sudo make upload
.PHONY:clean
clean:
rm -rf dist/*
.PHONY:build-wheel
build-wheel:
PYTHON_VERSION=3.9 CUDA_VERSION=12.4 bash scripts/build.sh
.PHONY:build-sdist
build-sdist:
# python3 -m build --no-isolation
python3 setup.py sdist --dist-dir=dist
.PHONY:upload
upload:
ls -alh dist
docker run -it --rm -v $(shell pwd):/app python:3.11 \
/bin/bash -c "pip install twine && python3 -m twine upload /app/dist/*"