Commit 66af48e8 authored by ndenoyelle's avatar ndenoyelle

fix error

parent fb287ad4
Pipeline #8928 passed with stages
in 11 minutes and 27 seconds
......@@ -44,19 +44,19 @@ int aml_layout_cuda_create(struct aml_layout **out,
layout_data->dims =
AML_INNER_MALLOC_EXTRA_NEXTPTR(layout,
struct aml_layout,
struct aml_layout_dense,
struct aml_layout_cuda_data,
size_t, 0);
layout_data->stride =
AML_INNER_MALLOC_EXTRA_NEXTPTR(layout,
struct aml_layout,
struct aml_layout_dense,
struct aml_layout_cuda_data,
size_t, ndims);
layout_data->cpitch =
AML_INNER_MALLOC_EXTRA_NEXTPTR(layout,
struct aml_layout,
struct aml_layout_dense,
struct aml_layout_cuda_data,
size_t, ndims*2);
// Store dims, stride and cpitch are internally stored in fortran
......
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