Revision 0d43318d10e1a00cfb44aae5e396e41a438a4b46 authored by Steven Johnson on 10 January 2023, 19:23:58 UTC, committed by GitHub on 10 January 2023, 19:23:58 UTC
* Optimize Module::compile() for some edge cases Avoid redundant `compile_to_buffer()` calls for output requests that can't possibly ever need them. * Avoid mutation
1 parent a8d88bb
Makefile
include ../support/Makefile.inc
.PHONY: build clean test
build: $(BIN)/$(HL_TARGET)/process
$(GENERATOR_BIN)/conv_layer.generator: conv_layer_generator.cpp $(GENERATOR_DEPS)
@mkdir -p $(@D)
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LIBHALIDE_LDFLAGS)
$(BIN)/%/conv_layer.a: $(GENERATOR_BIN)/conv_layer.generator
@mkdir -p $(@D)
$^ -g conv_layer -e $(GENERATOR_OUTPUTS) -o $(@D) -f conv_layer target=$*
$(BIN)/%/conv_layer_auto_schedule.a: $(GENERATOR_BIN)/conv_layer.generator
@mkdir -p $(@D)
$^ -g conv_layer -e $(GENERATOR_OUTPUTS) -o $(@D) -f conv_layer_auto_schedule target=$*-no_runtime autoscheduler=Mullapudi2016
$(BIN)/%/process: process.cpp $(BIN)/%/conv_layer.a $(BIN)/%/conv_layer_auto_schedule.a
@mkdir -p $(@D)
$(CXX) $(CXXFLAGS) -I$(BIN)/$* -Wall $^ -o $@ $(LDFLAGS)
run: $(BIN)/$(HL_TARGET)/process
@mkdir -p $(@D)
$^
clean:
rm -rf $(BIN)
test: run
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...