Revision 22c25300b7696a53d7690bd8f047a1607f5e3de9 authored by Andrew Adams on 13 February 2023, 19:27:53 UTC, committed by Andrew Adams on 13 February 2023, 19:27:53 UTC
1 parent f3deb60
Makefile
include ../support/Makefile.inc
all: $(BIN)/$(HL_TARGET)/filter
test: $(BIN)/$(HL_TARGET)/out.png
$(GENERATOR_BIN)/unsharp.generator: unsharp_generator.cpp $(GENERATOR_DEPS)
@mkdir -p $(@D)
$(CXX) $(CXXFLAGS) -g $(filter %.cpp,$^) -o $@ $(LIBHALIDE_LDFLAGS)
$(BIN)/%/unsharp.a: $(GENERATOR_BIN)/unsharp.generator
@mkdir -p $(@D)
$< -g unsharp -f unsharp -o $(BIN)/$* target=$*-no_runtime
$(BIN)/%/unsharp_auto_schedule.a: $(GENERATOR_BIN)/unsharp.generator
@mkdir -p $(@D)
$< -g unsharp -f unsharp_auto_schedule -o $(BIN)/$* target=$*-no_runtime autoscheduler=Mullapudi2016
$(BIN)/%/runtime.a: $(GENERATOR_BIN)/unsharp.generator
@mkdir -p $(@D)
$< -r runtime -o $(BIN)/$* target=$*
$(BIN)/%/filter: filter.cpp $(BIN)/%/unsharp.a $(BIN)/%/unsharp_auto_schedule.a $(BIN)/%/runtime.a
@mkdir -p $(@D)
$(CXX) $(CXXFLAGS) -I$(BIN)/$* -Wall -O3 $^ -o $@ $(LDFLAGS) $(IMAGE_IO_FLAGS) $(CUDA_LDFLAGS) $(OPENCL_LDFLAGS)
$(BIN)/%/out.png: $(BIN)/%/filter
$< ../images/rgba.png $(BIN)/$*/out.png
clean:
rm -rf $(BIN)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...