Commit c7311e94 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[fix] wrong function pointers in layout_pad_row

The new padded tilings uncovered bugs in the operator table and the
implementation of padded layouts in row-major. We've seen these issues
before, we should be a bit more careful in the future.
parent dfac0800
Pipeline #8597 passed with stages
in 11 minutes and 4 seconds
......@@ -43,6 +43,7 @@ static int aml_layout_pad_alloc(struct aml_layout **ret,
size_t, 2*ndims);
data->target = NULL;
data->ndims = ndims;
data->element_size = element_size;
*ret = layout;
return AML_SUCCESS;
}
......@@ -222,10 +223,10 @@ int aml_layout_pad_row_dims(const struct aml_layout_data *data, size_t *dims)
struct aml_layout_ops aml_layout_pad_row_ops = {
aml_layout_pad_row_deref,
aml_layout_pad_row_deref,
aml_layout_pad_column_deref,
aml_layout_pad_row_order,
aml_layout_pad_row_dims,
aml_layout_pad_row_dims,
aml_layout_pad_column_dims,
aml_layout_pad_ndims,
aml_layout_pad_element_size,
NULL,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment