
.PHONY: default clean all device run

default:
	$(MAKE) -C C/
clean:
	$(MAKE) -C C/ clean
	$(MAKE) -C shared/ clean
	$(RM) *.txt *.csv
all: clean default

bin/linux/release/bandwidthTest: default
bin/linux/release/deviceQuery: default

run: bin/linux/release/bandwidthTest
	srun --cpu_bind=none -n 1 --exclusive taskset -c 1 bin/linux/release/bandwidthTest --device=1 --memory=pinned

device: bin/linux/release/bandwidthTest
	srun --cpu_bind=none -n 1 --exclusive taskset -c 1 bin/linux/release/deviceQuery

