|
|
|
WORLD_SIZE ?= 1 |
|
MASTER_PORT ?= 26000 |
|
PYTHON ?= python3 |
|
PYTEST ?= pytest |
|
PYRIGHT ?= pyright |
|
EXTRA_ARGS ?= |
|
EXTRA_LAUNCHER_ARGS ?= |
|
|
|
test: |
|
LOCAL_WORLD_SIZE=1 $(PYTHON) -m $(PYTEST) $(EXTRA_ARGS) |
|
|
|
test-gpu: |
|
LOCAL_WORLD_SIZE=1 $(PYTHON) -m $(PYTEST) -m gpu $(EXTRA_ARGS) |
|
|
|
|
|
test-dist: |
|
$(PYTHON) -m composer.cli.launcher -n $(WORLD_SIZE) --master_port $(MASTER_PORT) $(EXTRA_LAUNCHER_ARGS) -m $(PYTEST) $(EXTRA_ARGS) |
|
|
|
test-dist-gpu: |
|
$(PYTHON) -m composer.cli.launcher -n $(WORLD_SIZE) --master_port $(MASTER_PORT) $(EXTRA_LAUNCHER_ARGS) -m $(PYTEST) -m gpu $(EXTRA_ARGS) |
|
|
|
.PHONY: test test-gpu test-dist test-dist-gpu |
|
|