cornell-zhang / heterocl

HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Heterogeneous Computing
https://cornell-zhang.github.io/heterocl/
Apache License 2.0
322 stars 92 forks source link

[API] JSON based Hierarchical Platform Representation #447

Closed hecmay closed 2 years ago

hecmay commented 2 years ago

TBA

hecmay commented 2 years ago

Need to upgrade g++ to 7 and downgrade python to 3.6 to make the local CI/CD work

hecmay commented 2 years ago

@chhzh123 you did not add Circle CI to hcl-mlir branch, right? It seems the cloud CI/CD would hang up and terminated when building LLVM

make[1]: *** [Makefile.pkg.common:6: all] Terminated
make: *** [Makefile:8: build-pkgs] Terminated
make[5]: *** [tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/build.make:303: tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaCodeComplete.cpp.o] Hangup
make[5]: *** [tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/build.make:524: tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGStmtOpenMP.cpp.o] Hangup
make[5]: *** [tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/build.make:511: tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGStmt.cpp.o] Hangup
make[5]: *** [tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/build.make:550: tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ExprConstant.cpp.o] Hangup
make[2]: *** [Makefile:40: /home/circleci/project/build/pkgs/llvm/.build-llvm] Hangup
make[4]: *** [CMakeFiles/Makefile2:32839: tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/all] Hangup
make[4]: *** [CMakeFiles/Makefile2:33029: tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/all] Hangup
make[4]: *** [CMakeFiles/Makefile2:32162: tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/all] Hangup
make[3]: *** [Makefile:171: all] Hangup

context deadline exceeded
chhzh123 commented 2 years ago

Nope, I haven't added CI tests in this repository.

chhzh123 commented 2 years ago

@hecmay I can later do it. But if you want to set it up yourself, you can check the configuration file here. I think we do not need to retain the TVM compilation flow?

hecmay commented 2 years ago

thanks @chhzh123 . right, i think we just can keep the MLIR related tests. The TVM version has been tested in master branch.

It seems that our compilation is killed by Circle CI/CD since we are using free plan and it has a build time limitation of 1 hour: Context deadline exceeded after 1 hour - Build timed out (Free tier only)

We probably need to install a pre-compiled one, or do that locally.

chhzh123 commented 2 years ago

The MLIR one only takes 5 min to build and pass all the tests if LLVM 14 is prebuilt in advance. I'll give it a try later to see if it works.

chhzh123 commented 2 years ago

The CI has been set up in f73be3.

hecmay commented 2 years ago

@chhzh123 it seems that im still not able to access that private repo

Cloning into 'hcl-dialect-prototype'...
Warning: Permanently added the ECDSA host key for IP address '140.82.114.4' to the list of known hosts.
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Exited with code exit status 128
CircleCI received exit code 128
hecmay commented 2 years ago

@chhzh123 can u also help review this PR? i plan to update the code gen part in another PR to add the driver code part for different backends.