CGRAME / CGRA-ME-ISSUES

CGRA-ME is an open-source framework for modelling and exploring coarse grain reconfigurable architectures and CAD.
3 stars 0 forks source link

Failed to generate the DFG #9

Open ShangkunLi opened 5 months ago

ShangkunLi commented 5 months ago

Hi~ I am following the DATE24' Tutorial to get used to the CGRA-ME Framework. I encounted 2 problems in generating a DFG

  1. I am using llvm 16.0.0 version, I encounted 1 error when I try yo generate a .dot file from C code. Please see my error blow. But when I use your docker containers, which uses the llvm 14.0.0 version, it works well.

    cgra-mev2/benchmarks/microbench/sum$ make
    '/home/x3/shangkun-li/Project/cgra-mev2/build/script/LoopParser.py' 'simple.c' 'simple.tagged.c' 'simple.tag'
    clang -emit-llvm -c 'simple.tagged.c' -o 'simple.bc' -O3 -fno-vectorize -fno-slp-vectorize -fno-unroll-loops
    LLVM_MAJOR_VERSION=16
    USE_NEW_PASS_MANAGER=yes
    opt 'simple.bc' -o '/dev/null' --load '/home/x3/shangkun-li/Project/cgra-mev2/build/lib/llvm-pass-dfggen.so' --load-pass-plugin '/home/x3/shangkun-li/Project/cgra-mev2/build/lib/llvm-pass-dfggen.so' --passes=dfg-out -loop-tags 'loop' --in-tag-pairs 'simple.tag' 
    make: *** [../../rules.mk:61: graph_loop.dot] Error 1
    rm simple.bc simple.tag simple.tagged.c
  2. I also try to generate the final_graph_loop_dot from your 'pre-gen-graph_loop.dot'. But it also failed. The error message is below.

    [stdout]
    !==>
    !==> TERMINATING! An exception reached the top of the stack. Exception chain:
    !==>  .what(): [ERROR] ADL architecture not supported