File tree 5 files changed +12
-12
lines changed
src/autoschedulers/adams2019
5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -2381,12 +2381,12 @@ endif
2381
2381
# Adams2019 also includes autotuning tools
2382
2382
$(DISTRIB_DIR ) /lib/libautoschedule_adams2019.$(PLUGIN_EXT ) : $(BIN_DIR ) /libautoschedule_adams2019.$(PLUGIN_EXT )
2383
2383
@mkdir -p $(@D )
2384
- $(MAKE ) -f $(SRC_DIR ) /autoschedulers/adams2019/Makefile $(BIN_DIR ) /retrain_cost_model $(BIN_DIR ) /featurization_to_sample $(BIN_DIR ) /get_host_target HALIDE_DISTRIB_PATH=$(CURDIR ) /$(DISTRIB_DIR )
2384
+ $(MAKE ) -f $(SRC_DIR ) /autoschedulers/adams2019/Makefile $(BIN_DIR ) /adams2019_retrain_cost_model $(BIN_DIR ) /featurization_to_sample $(BIN_DIR ) /get_host_target HALIDE_DISTRIB_PATH=$(CURDIR ) /$(DISTRIB_DIR )
2385
2385
cp $< $(DISTRIB_DIR ) /lib/
2386
- for TOOL in retrain_cost_model featurization_to_sample get_host_target; do \
2386
+ for TOOL in adams2019_retrain_cost_model featurization_to_sample get_host_target; do \
2387
2387
cp $(BIN_DIR ) /$$ {TOOL} $(DISTRIB_DIR ) /bin/; \
2388
2388
done
2389
- cp $(SRC_DIR ) /autoschedulers/adams2019/autotune_loop .sh $(DISTRIB_DIR ) /tools/
2389
+ cp $(SRC_DIR ) /autoschedulers/adams2019/adams2019_autotune_loop .sh $(DISTRIB_DIR ) /tools/
2390
2390
ifeq ($(UNAME ) , Darwin)
2391
2391
install_name_tool -id @rpath/$(@F) $(CURDIR)/$@
2392
2392
endif
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ else ()
79
79
set (rbase $ORIGIN)
80
80
endif ()
81
81
82
- foreach (util IN ITEMS adams2019_retrain_cost_model adams2019_featurization_to_sample adams2019_get_host_target adams2019_weightsdir_to_weightsfile)
82
+ foreach (util IN ITEMS adams2019_retrain_cost_model featurization_to_sample get_host_target adams2019_weightsdir_to_weightsfile)
83
83
if (TARGET ${util} )
84
84
if (NOT CMAKE_INSTALL_RPATH )
85
85
set_target_properties (${util} PROPERTIES INSTALL_RPATH "${rbase} ;${rbase} /${lib_dir} " )
@@ -121,7 +121,7 @@ install(DIRECTORY ${Halide_SOURCE_DIR}/tools/
121
121
PATTERN "build_halide_h.cpp" EXCLUDE
122
122
PATTERN "find_inverse.cpp" EXCLUDE )
123
123
124
- install (PROGRAMS ${Halide_SOURCE_DIR} /src/autoschedulers/adams2019/autotune_loop .sh
124
+ install (PROGRAMS ${Halide_SOURCE_DIR} /src/autoschedulers/adams2019/adams2019_autotune_loop .sh
125
125
DESTINATION ${Halide_INSTALL_TOOLSDIR}
126
126
COMPONENT Halide_Development)
127
127
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ if (APPLE AND num_archs GREATER 1)
71
71
)
72
72
endif ()
73
73
74
- # retrain_cost_model
74
+ # adams2019_retrain_cost_model
75
75
if (WITH_UTILS)
76
76
add_executable (adams2019_retrain_cost_model
77
77
DefaultCostModel.cpp
@@ -106,10 +106,10 @@ target_link_libraries(Halide_Adams2019 PRIVATE ASLog ParamParser adams2019_cost_
106
106
# TODO(#4053): implement auto-tuning support in CMake?
107
107
108
108
if (WITH_UTILS)
109
- add_executable (adams2019_featurization_to_sample featurization_to_sample.cpp)
109
+ add_executable (featurization_to_sample featurization_to_sample.cpp)
110
110
111
- add_executable (adams2019_get_host_target get_host_target.cpp)
112
- target_link_libraries (adams2019_get_host_target PRIVATE Halide::Halide)
111
+ add_executable (get_host_target get_host_target.cpp)
112
+ target_link_libraries (get_host_target PRIVATE Halide::Halide)
113
113
114
114
add_executable (adams2019_weightsdir_to_weightsfile weightsdir_to_weightsfile.cpp Weights.cpp)
115
115
target_link_libraries (adams2019_weightsdir_to_weightsfile PRIVATE Halide::Runtime)
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ $(BIN)/libautoschedule_adams2019.$(PLUGIN_EXT): \
87
87
@mkdir -p $(@D )
88
88
$(CXX ) -shared $(USE_EXPORT_DYNAMIC ) -fPIC -fvisibility=hidden -fvisibility-inlines-hidden $(CXXFLAGS ) $(OPTIMIZE ) -I $(BIN ) /cost_model $(filter-out % .h $(LIBHALIDE_LDFLAGS ) ,$^ ) -o $@ $(HALIDE_SYSTEM_LIBS ) $(HALIDE_RPATH_FOR_LIB )
89
89
90
- $(BIN ) /retrain_cost_model : $(SRC ) /retrain_cost_model.cpp \
90
+ $(BIN ) /adams2019_retrain_cost_model : $(SRC ) /retrain_cost_model.cpp \
91
91
$(COMMON_DIR ) /ASLog.cpp \
92
92
$(SRC ) /DefaultCostModel.h \
93
93
$(SRC ) /DefaultCostModel.cpp \
@@ -108,7 +108,7 @@ $(BIN)/featurization_to_sample: $(SRC)/featurization_to_sample.cpp
108
108
$(BIN ) /get_host_target : $(SRC ) /get_host_target.cpp $(LIB_HALIDE ) $(HALIDE_DISTRIB_PATH ) /include/Halide.h
109
109
@mkdir -p $(@D )
110
110
$(CXX ) $(CXXFLAGS ) $(filter % .cpp,$^ ) $(LIBHALIDE_LDFLAGS ) $(OPTIMIZE ) -o $@ $(HALIDE_RPATH_FOR_BIN )
111
- $(BIN ) /weightsdir_to_weightsfile : $(SRC ) /weightsdir_to_weightsfile.cpp $(SRC ) /Weights.cpp
111
+ $(BIN ) /adams2019_weightsdir_to_weightsfile : $(SRC ) /weightsdir_to_weightsfile.cpp $(SRC ) /Weights.cpp
112
112
@mkdir -p $(@D )
113
113
$(CXX ) $(CXXFLAGS ) $^ $(OPTIMIZE ) -o $@
114
114
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ for ((BATCH_ID=$((FIRST+1));BATCH_ID<$((FIRST+1+NUM_BATCHES));BATCH_ID++)); do
213
213
echo Retraining model...
214
214
215
215
find ${SAMPLES} -name " *.sample" | \
216
- ${AUTOSCHED_BIN} /retrain_cost_model \
216
+ ${AUTOSCHED_BIN} /adams2019_retrain_cost_model \
217
217
--epochs=${BATCH_SIZE} \
218
218
--rates=" 0.0001" \
219
219
--num_cores=32 \
You can’t perform that action at this time.
0 commit comments