Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions python/tvm/dlight/gpu/gemv.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ def apply( # pylint: disable=too-many-locals,too-many-branches,too-many-return-
if is_inner_reduction is None:
return None
elif is_inner_reduction:
self.sch_inner_reduction(sch, target, block, vector_input_buffers, epilogue)
return sch
return self.sch_inner_reduction(sch, target, block, vector_input_buffers, epilogue)
elif target.kind.name == "opencl" and "android" in str(target.host):
ret = self.sch_outer_reduction(sch, target, block, vector_input_buffers, epilogue)
if ret is None:
Expand Down Expand Up @@ -313,7 +312,8 @@ def apply(

# load vector into shared memory, shape should be the whole vector
if LOAD_V_SHARED:
assert len(vector_input_buffers) == 1
if len(vector_input_buffers) != 1:
return None
V_shared = sch.cache_read(rf, read_buffer_index=0, storage_scope="shared")
sch.compute_at(V_shared, tr, preserve_unit_loops=True)
l = sch.get_loops(block=V_shared)[-1]
Expand Down