{"id":16933060,"url":"https://github.com/zrr1999/boning-mlir","last_synced_at":"2025-04-05T14:25:34.210Z","repository":{"id":229982258,"uuid":"626322216","full_name":"zrr1999/boning-mlir","owner":"zrr1999","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-06T06:29:12.000Z","size":47,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T11:00:08.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zrr1999.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-11T08:31:29.000Z","updated_at":"2024-03-27T06:00:53.000Z","dependencies_parsed_at":"2024-03-27T08:23:04.272Z","dependency_job_id":"186edf51-f6ba-4471-bfb5-0412ba2ed7f8","html_url":"https://github.com/zrr1999/boning-mlir","commit_stats":null,"previous_names":["zrr1999/boning-mlir"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrr1999%2Fboning-mlir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrr1999%2Fboning-mlir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrr1999%2Fboning-mlir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrr1999%2Fboning-mlir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zrr1999","download_url":"https://codeload.github.com/zrr1999/boning-mlir/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247348826,"owners_count":20924600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T20:48:28.582Z","updated_at":"2025-04-05T14:25:34.189Z","avatar_url":"https://github.com/zrr1999.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Boning-mlir\n\n## 使用方法\n### docker\n```sh\ndocker run --name Boning-mlir -itd --restart unless-stopped -p 10001:22 -v ~/workspace/:/workspace/ zrr1999/boning-mlir:latest\nssh -p 10001 zrr1999@localhost\n```\n### 构建项目\n\n#### 1. Prerequisites: clang ninja\n\n#### 2. Run \"git submodule update --init\" to get the llvm project\n\n#### 3. Build:\n3.1 Use shell script:\n\nOne-step Build：\n```sh\n./build.sh --step 1\n```\nTwo-step Build：\n```sh\n./build.sh --step 2\n```\n3.2 Use CLI directly\n\nOne-step Build\n```sh\ncmake -G Ninja -Bbuild \\\n    -DLLVM_ENABLE_PROJECTS=\"mlir\" \\\n    -DLLVM_TARGETS_TO_BUILD=\"X86;ARM\" \\\n    -DLLVM_EXTERNAL_PROJECTS=\"boning-mlir\" \\\n    -DLLVM_EXTERNAL_BONING_MLIR_SOURCE_DIR=\"$PWD\" \\\n    -DLLVM_ENABLE_ASSERTIONS=ON \\\n    -DCMAKE_BUILD_TYPE=RELEASE \\\n    3rdparty/llvm/llvm\ncd build\nninja check-mlir\nninja\nninja install (optional)\n```\nTwo-step Build\n\nBuild LLVM and MLIR\n```sh\ncd boning-mlir/3rdparty/llvm\nmkdir build \u0026\u0026 cd build\ncmake -G Ninja ../llvm \\\n    -DLLVM_ENABLE_PROJECTS=\"mlir;\" \\\n    -DLLVM_TARGETS_TO_BUILD=\"X86;ARM\" \\\n    -DLLVM_ENABLE_ASSERTIONS=ON \\\n    -DCMAKE_BUILD_TYPE=RELEASE\nninja check-mlir\n```\nBuild boning-mlir\n```sh\ncd boning-mlir\nmkdir build \u0026\u0026 cd build\ncmake -G Ninja .. \\\n    -DMLIR_DIR=$PWD/../3rdparty/llvm/build/lib/cmake/mlir \\\n    -DLLVM_DIR=$PWD/../3rdparty/llvm/build/lib/cmake/llvm \\\n    -DLLVM_ENABLE_ASSERTIONS=ON \\\n    -DCMAKE_BUILD_TYPE=RELEASE\nninja\nninja install (optional)\n```\n\n## TODO\n- 利用 [IssueTools](https://github.com/zrr1999/IssueTools) 管理 issue 和 TODO\n- 添加 Python 支持\n- 实现 PyTorch 前端支持\n- x86 CPU 后端方言（或利用 llvm ir）\n- 添加单元测试机制及补充 CI 机制\n- 量化、剪枝等机制的研究\n- 内存分配优化算法\n- 针对 Arm CPU（A53）和 GPU（Mali）的技术调研\n- 方案报告\n- 更多内容\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzrr1999%2Fboning-mlir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzrr1999%2Fboning-mlir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzrr1999%2Fboning-mlir/lists"}