Skip to content

Buffer overwrite on allocation on CPU gen12 #1626

Open

Description

@ZzEeKkAa

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.

Activity

  1. changed the title [-]Buffer overwrite on allocation[/-] [+]Buffer overwrite on allocation on CPU gen11[/+] on Nov 15, 2023
  2. changed the title [-]Buffer overwrite on allocation on CPU gen11[/-] [+]Buffer overwrite on allocation on CPU gen12[/+] on Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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