Skip to content

Commit

Permalink
Fix conv2d_nchw for opencl intel graphics (#8201)
Browse files Browse the repository at this point in the history
  • Loading branch information
elvin-n authored Jun 7, 2021
1 parent 3ab4a6b commit 51bbd63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/topi/intel_graphics/conv2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def _schedule_cl_spatialpack(s, op):
temp = s[conv].op.input_tensors[0]
kernel_vec = s[conv].op.input_tensors[1]
kernel = s[kernel_vec].op.input_tensors[0]
temp_W = s.cache_read(temp, "warp", [conv])
temp_W = s.cache_read(temp, "shared", [conv])
conv_L = s.cache_write(conv, "local")

kernel_L = s.cache_read(kernel_vec, "local", [conv_L])
Expand Down
2 changes: 2 additions & 0 deletions tests/python/topi/python/test_topi_conv2d_nchw.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def check_target(target):

if use_cudnn:
check_target("cuda -model=unknown -libs=cudnn")
if ("opencl", tvm.device("opencl")) in tvm.testing.enabled_targets():
check_target("opencl -device=intel_graphics")


@tvm.testing.uses_gpu
Expand Down

0 comments on commit 51bbd63

Please sign in to comment.