Skip to content

Commit

Permalink
Revert "[API][Backend] Streaming and OpenCL Backends (cornell-zhang#138
Browse files Browse the repository at this point in the history
…)" (cornell-zhang#139)

This reverts commit 2c75344.
  • Loading branch information
seanlatias authored and hecmay committed Mar 24, 2020
1 parent 2969ef7 commit 6ddccdb
Show file tree
Hide file tree
Showing 134 changed files with 554 additions and 8,623 deletions.
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ test: &test
- run: make build-python
- run: source .circleci/install_tvm.sh
- run: pip install --user pytest
- run: pip install --user future
- run: python -m pytest tests
- run: pip install --user mxnet
- run: python -m pytest samples
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ tags
docs/source/samples
docs/source/tutorials
soda_*
*.cpp
*.h
out

# Downloaded files
Expand Down
11 changes: 0 additions & 11 deletions HISTORY

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ build-hcl: build-tvm

build-python:
cd python; \
python setup.py develop --user; \
python setup.py install --user; \
cd ../hlib/python; \
python setup.py develop --user;
python setup.py install --user;

clean:
rm -rf build
Expand Down
3 changes: 0 additions & 3 deletions Makefile.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ CMAKE_OK = no
# set whether to use vivado hls runtime
USE_VIVADO_HLS = 1

# set whether to use sdaccel opencl runtime
USE_SDACCEL_HLS = 1

# Specify current directory level with respect to CLAY_ROOT
ifndef LEVEL
LEVEL := .
Expand Down
11 changes: 0 additions & 11 deletions hlib/python/hlib/nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,6 @@ def _pad(*indices):
return data[tuple(index_tuple)]
return hcl.compute(out_shape, _pad, name='pad')

def conv2d_nchw_imp(Input, Filter, Output, stride=[1,1], padding=[[0,0],[0,0]]):
with hcl.for_(0,Output.shape[0]) as n:
with hcl.for_(0,Output.shape[1]) as c:
with hcl.for_(0,Output.shape[2]) as h:
with hcl.for_(0,Output.shape[3]) as w:
partial = hcl.scalar(0)
with hcl.for_(0,Filter.shape[-2]) as x:
with hcl.for_(0,Filter.shape[-1]) as y:
partial.v += Input[n][c][h+x][w+y] * Filter[0][0][x][y]
Output[n,c,h,w] = partial

def conv2d_nchw(Input, Filter, name="conv2d", stride=[1,1], padding=[[0,0],[0,0]]):
out_dtype = Input.dtype
batch, in_channel, in_height, in_width = Input.shape
Expand Down
1 change: 0 additions & 1 deletion hlib/rocc-ppac
Submodule rocc-ppac deleted from 40d323
1 change: 0 additions & 1 deletion python/heterocl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from .compute_api import *
from .dsl import *
from .types import *
from .devices import *
from .nparray import *
from .debug import hcl_excepthook
from .tvm.intrin import *
Expand Down
2 changes: 1 addition & 1 deletion python/heterocl/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def app2(A, B, C):
# execute f2
"""
# set the configurations
config.init_dtype = init_dtype
config.init_dtype = init_dtype
# initialize global variables
Schedule.stage_ops = []
Schedule.last_stages = OrderedSet([])
Expand Down
5 changes: 0 additions & 5 deletions python/heterocl/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ class TensorError(HCLError):
def __init__(self, msg):
HCLError.__init__(self, msg, "\33[1;31m[Tensor]\33[0m ")

class DeviceError(HCLError):
"""A subclass for specifying device related exception"""
def __init__(self, msg):
HCLError.__init__(self, msg, "\33[1;31m[Device]\33[0m ")

def hcl_excepthook(etype, value, tb):
"""Customized excepthook
Expand Down
278 changes: 0 additions & 278 deletions python/heterocl/devices.py

This file was deleted.

4 changes: 1 addition & 3 deletions python/heterocl/dsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,7 @@ def decorator(fmodule, shapes=shapes, dtypes=dtypes, ret_dtype=ret_dtype, name=n
var_ = placeholder((), name_, dtype)
inputs.append(var_)
inputs_tvm.append(var_.var)
arg_shapes.append([1])
arg_dtypes.append(dtype)
else: # tensor inputs (new bufs)
else:
placeholder_ = placeholder(shape, name_, dtype)
inputs.append(placeholder_)
inputs_tvm.append(placeholder_.buf.data)
Expand Down
Loading

0 comments on commit 6ddccdb

Please sign in to comment.