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

separate level is incorrectly assumed to be atomic #672

Open
willow-ahrens opened this issue Dec 12, 2024 · 0 comments
Open

separate level is incorrectly assumed to be atomic #672

willow-ahrens opened this issue Dec 12, 2024 · 0 comments

Comments

@willow-ahrens
Copy link
Collaborator

@wraith1995

    let
        A = Tensor(Dense(SparseList(Element(0.0))), fsprand(UInt, 42, 42, 0.1))
        x = Tensor(Dense(Element(0.0)), rand(UInt, 42))
        y = Tensor(Dense(Separate(Element(0.0))))

        @finch begin
            y .= 0
            for i = parallel(_)
                for j = _
                    y[i] += A[i, j] * x[j]
                end
            end
        end

        @test norm(y - A * x) / norm(A* x) < 1e-10
    end
    ```
    
    This should raise a concurrency error, but it does not
@willow-ahrens willow-ahrens changed the title separate level is not atomic separate level is incorrectly assumed to be atomic Dec 12, 2024
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