AutoKernel icon indicating copy to clipboard operation
AutoKernel copied to clipboard

autokernel使用问题

Open shitouren1994 opened this issue 3 years ago • 2 comments

1.Halide.h里面用到了c++17,autokernel_plugin的builid.sh中修改-std=c++17才能编译通过 2.tools.py第175行{HALIDE_HOME}/halide-build/inclue出现了这个路径,不同于autokernel_plugin部分,HALIDE_ROOT代表halide项目源码地址,HALIDE_DIR代表halide的安装位置,建议统一下,这里指定{HALIDE_HOME}/halide-build,需要在源码安装的时候指定build目录名字为halide-build,不同人的习惯可能不同。 3.tools.py第64行,{HALIDE_HOME}/bin这个bin目录源码位置没有(可能是Hailde拉取的版本不同),同时安装目录的库存放地址应该是{HALIDE_DIR}/lib 4.执行python3 tools.py --gen ../generator/batch_matmul.cpp -autotune -compute_time 出现错误: c++: error: ./temp/batch_1_0/0/.registration.cpp: No such file or directory c++: error: ./temp/batch_1_0/0/.a: No such file or directory c++: error: ./temp/batch_1_0/1/.registration.cpp: No such file or directory c++: error: ./temp/batch_1_0/1/.a: No such file or directory timeout: failed to run command ‘./temp/batch_1_0/0/bench’: No such file or directory timeout: failed to run command ‘./temp/batch_1_0/1/bench’: No such file or directory retrain_cost_model: /home/hebingshi/Downloads/autokernel-git-pr/AutoKernel/AutoSearch/src/adams2019/retrain_cost_model.cpp:351: std::map<int, {anonymous}::PipelineSample> {anonymous}::load_samples(const {anonymous}::Flags&): Assertion `dot != string::npos && best_path.substr(dot) == ".sample"' failed. ../src/adams2019/autotune_loop.sh: line 261: 294442 Done find ${SAMPLES} -name "*.sample" 294443 Aborted (core dumped) | ${AUTOSCHED_BIN}/retrain_cost_model --epochs=${BATCH_SIZE} --rates="0.0001" --num_cores=32 --initial_weights=${WEIGHTS} --weights_out=${WEIGHTS} --best_benchmark=${SAMPLES}/best.${PIPELINE}.benchmark.txt --best_schedule=${SAMPLES}/best.${PIPELINE}.schedule.h

shitouren1994 avatar Jun 22 '21 03:06 shitouren1994

@shitouren1994 , 你好,最新版本已更新, 统一 HALIDE_ROOT为 halide源码路径,在docker里为/workspace/Halide HALIDE_DIR为 halide安装路径, 在docker里为/usr/local ${HALIDE_DIR}/include为halide头文件 ${HALIDE_DIR}/lib为halide库文件

你可以拉取最新版本试试,AutoSearch应该能跑通

lyuchuny3 avatar Jun 26 '21 15:06 lyuchuny3

拉最新的代码,在docker上跑测试例子报错, 没找到动态依赖库

/workspace/AutoKernel/AutoSearch/toolkit/demo_gen: error while loading shared libraries: libHalide.so.10: cannot open shared object file: No such file or directory

lkc3093 avatar Apr 13 '22 06:04 lkc3093