Skip to content

bitwise XOR assignment fails on 1st dimension #148

@polarathene

Description

@polarathene

Not sure why this is failing, trying array_a ^= array_b both are U64 type elements, error "Size is incorrect"

Detailed error:

In function void assign(opencl::Array<T>&, const unsigned int&, const af_seq*, const opencl::Array<outType>&) [with Tout = long long unsigned int; Tin = long long unsigned int; af_seq = af_seq]
In file src/api/c/assign.cpp:36
Invalid dimension for argument 0
Expected: (outDs.ndims()>=(dim_t)ndims)

array_a:

[1 1 1 1]
       819 

array_b:

[1 1 1 1]
   1296111 

Example code:

let dims = Dim4::new(&[1, 1, 1, 1]);
let mut array_a = af::Array::new(&[819u64], dims);
let array_b = af::Array::new(&[1296111u64], dims);

array_a ^= array_b;

I think this is possibly related to the indexing bug @9prady9 recently fixed. If I increase row elements it fails, if I increase by column elements no crash. I guess I need to wait until the crate is updated?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions