Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffer overwrite on allocation on CPU gen12 #1626

Open
ZzEeKkAa opened this issue Nov 15, 2023 · 0 comments
Open

Buffer overwrite on allocation on CPU gen12 #1626

ZzEeKkAa opened this issue Nov 15, 2023 · 0 comments

Comments

@ZzEeKkAa
Copy link
Contributor

ZzEeKkAa commented Nov 15, 2023

I've caught strange behavior that does not raise error, but produce wired results. Looks like initialization writes out of buffer.

import dpnp

size = 1000_000_000
a = dpnp.ones(size)
b = dpnp.ones(size)
c = dpnp.zeros(size) # this overwrites first 480 elements of b to zeros

print(b) # [0. 0. 0. ... 1. 1. 1.]
# expected [1. 1. 1. ... 1. 1. 1.]

# if we remove c allocation - everything works as expected
# if we remove a allocation - segmentation fault or IOT instruction

Issue is reproducible on ubuntu gen9(cpu+gpu if *2), ubuntu gen11(cpu), wsl ubuntu gen12(cpu)
On windows it hangs up.

@ZzEeKkAa ZzEeKkAa changed the title Buffer overwrite on allocation Buffer overwrite on allocation on CPU gen11 Nov 15, 2023
@ZzEeKkAa ZzEeKkAa changed the title Buffer overwrite on allocation on CPU gen11 Buffer overwrite on allocation on CPU gen12 Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant