last fixes..
@@ -116,7 +116,7 @@ if ( libxsmm_target_archid == LIBXSMM_X86_AVX512_MIC ||
for (oj = 0; oj < handle->ifhp; oj++) {
for (ij = 0; ij < handle->ifwp; ij++) {
input_ptr = (element_input_type*)&LIBXSMM_VLA_ACCESS(5, del_input, img, oj, ij, ifm1, 0, handle->ifhp, handle->ifwp, handle->blocksifm, handle->ifmblock);
- copy_ptr = (element_input_type*)&LIBXSMM_VLA_ACCESS(4, input_buffer, handle->desc.pad_h, handle->desc.pad_w, ifm1, 0, padded_w, handle->blocksifm, handle->ifmblock);
+ copy_ptr = (element_input_type*)&LIBXSMM_VLA_ACCESS(4, input_buffer, oj+handle->desc.pad_h, ij+handle->desc.pad_w, ifm1, 0, padded_w, handle->blocksifm, handle->ifmblock);
prefetch_ptr = (element_input_type*)&LIBXSMM_VLA_ACCESS(5, del_input, img+(ifm1+1)/handle->blocksifm, oj, ij, (ifm1+1)%handle->blocksifm, 0, handle->ifhp, handle->ifwp, handle->blocksifm, handle->ifmblock);
jitted_matcopy(input_ptr, NULL, copy_ptr, NULL, prefetch_ptr);
}
@@ -145,7 +145,7 @@ if ( libxsmm_target_archid == LIBXSMM_X86_AVX512_MIC ||
for (oj = 0; oj < handle->ifhp; oj++) {
for (ij = 0; ij < handle->ifwp; ij++) {
input_ptr = (element_input_type*)&LIBXSMM_VLA_ACCESS(5, del_input, img, oj, ij, ifm1, 0, handle->ifhp, handle->ifwp, handle->blocksifm, handle->ifmblock);
- copy_ptr = (element_input_type*)&LIBXSMM_VLA_ACCESS(4, input_buffer, handle->desc.pad_h, handle->desc.pad_w, ifm1, 0, padded_w, handle->blocksifm, handle->ifmblock);
+ copy_ptr = (element_input_type*)&LIBXSMM_VLA_ACCESS(4, input_buffer, oj+handle->desc.pad_h, ij+handle->desc.pad_w, ifm1, 0, padded_w, handle->blocksifm, handle->ifmblock);
jitted_matcopyback(copy_ptr, NULL, input_ptr, NULL, NULL);
}
}
