Complex Loop with More Instructions
Closed this issue · 2 comments
Hi, I try to run a SHA-224 kernel on the CGRA but the compiler raises a warning that the loop can't be mapped onto the CGRA due to the "3) Complex Loop with More Instructions. Total Instructions: 75". Is there any solution to solve this issue? BTW, how to change the dimension of the default CGRA architecture? Thanks.
Hi, This is because in our earlier release, this was soft-constrained via LLVM pass. This can be modified at:
ccf/llvm/lib/Transforms/DDGGen/DDGGen.cpp
Line 2410 in 1dd8772
Also, please check out newer version, which is currently available at
https://github.com/MPSLab-ASU/CCF-20.04
Dear @xtfan ,
I am currently trying to set up the CCF framework (https://github.com/MPSLab-ASU/CCF-20.04) and run it, but I have encountered some difficulties and I am hoping to seek your assistance.
Problem Description: Following the instructions in the README file on GitHub, I have successfully set up the CCF framework on Ubuntu 20.04 using its install script. However, when running the benchmarks, most of the tests encounter errors during the 'make' process. Only a few tests can be successfully compiled, but gem5 does not work properly in any case.
Specifically, after successfully running the install.sh script, I attempted the factorial test from the benchmark suite. However, after running 'make', I encountered an "llvm-dis: error: No such file or directory" error. I managed to resolve this error by forcibly executing the command "$ccf_root/scripts/opt.sh combinedIR.ll ${install_path} ${ccf_root}" within 'cgracc', and it seemed to have been successfully mapped. However, when I attempted to use gem5 for simulation by running 'cgraexe factorial --prog-args 6', I encountered the following error:
I have tried modifying the data types from 'long' to 'int' and vice versa, and successfully compiled the contents of 'InstructionGenerator'. Returning to the factorial test, I tried running 'cgraexe factorial --prog-args 6' again, but encountered the following new error:
I have attempted to search through official documentation and online resources for a solution, but have been unable to find one. I am reaching out to you in the hope that you might have encountered a similar issue or are familiar with the compilation process of CCF. If possible, could you please provide guidance on how to resolve this problem? I would greatly appreciate your time and assistance.
Looking forward to your response.
Warm regards!