Skip to content

Commit c70235a

Browse files
committed
Merge branch 'main' of github.com:cornell-zhang/hcl-dialect
2 parents 22a8fd2 + 6050168 commit c70235a

File tree

6 files changed

+51
-4
lines changed

6 files changed

+51
-4
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,4 @@ build
4141
*.log
4242
*.prj
4343

44-
llvm-project
4544
tmp

.gitmodules

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
[submodule "external/openscop"]
2-
path = external/openscop
1+
[submodule "externals/openscop"]
2+
path = externals/openscop
33
url = https://github.com/periscop/openscop.git
4+
[submodule "externals/llvm-project"]
5+
path = externals/llvm-project
6+
url = https://github.com/llvm/llvm-project.git

externals/llvm-project

Submodule llvm-project added at 4ba6a9c

include/hcl/Bindings/Python/CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,14 @@ add_custom_command(
109109
TARGET HCLMLIRPythonModules POST_BUILD
110110
COMMAND ${CMAKE_COMMAND} -E copy
111111
${HCL_MLIR_PYTHON_ROOT_DIR}/dialects/_scf_ops_ext.py
112-
${HCL_MLIR_PYTHON_PACKAGES_DIR}/hcl_core/hcl_mlir/dialects)
112+
${HCL_MLIR_PYTHON_PACKAGES_DIR}/hcl_core/hcl_mlir/dialects)
113+
114+
################################################################################
115+
# Add setup script
116+
################################################################################
117+
118+
add_custom_command(
119+
TARGET HCLMLIRPythonModules POST_BUILD
120+
COMMAND ${CMAKE_COMMAND} -E copy
121+
${HCL_MLIR_PYTHON_ROOT_DIR}/../setup.py
122+
${HCL_MLIR_PYTHON_PACKAGES_DIR}/hcl_core)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# ===----------------------------------------------------------------------=== #
2+
#
3+
# Copyright 2021-2023 The HCL-MLIR Authors.
4+
#
5+
# ===----------------------------------------------------------------------=== #
6+
7+
import setuptools
8+
9+
def setup():
10+
setuptools.setup(
11+
name="hcl_mlir",
12+
description="HCL-MLIR: A HeteroCL-MLIR Dialect for Heterogeneous Computing",
13+
version="0.1",
14+
author="HeteroCL",
15+
setup_requires=[],
16+
install_requires=[],
17+
packages=setuptools.find_packages(),
18+
url="https://github.com/cornell-zhang/hcl-dialect",
19+
python_requires=">=3.6",
20+
classifiers=[
21+
"Programming Language :: Python :: 3.6",
22+
"Programming Language :: Python :: 3.7",
23+
"Programming Language :: Python :: 3.8",
24+
"Programming Language :: Python :: 3.9",
25+
"Programming Language :: Python :: 3.10",
26+
"Topic :: Scientific/Engineering :: Accelerator Design",
27+
"Operating System :: OS Independent",
28+
],
29+
zip_safe=True,
30+
)
31+
32+
33+
if __name__ == "__main__":
34+
setup()

0 commit comments

Comments
 (0)