Revision 0174bb20116efa28a1b0e46efe4da7f195c0fe0d authored by Aelphy on 28 February 2024, 14:30:09 UTC, committed by Aelphy on 28 February 2024, 14:32:24 UTC
1 parent aa696b5
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 ...