-
Notifications
You must be signed in to change notification settings - Fork 18
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
nested task error: ReadOnlyMemoryError() when using matmul!
#191
Comments
matmul!
How many physical cores does your system have? Octavian should limit itself to that many.
Can you julia> using Octavian
julia> X = rand(271, 24);
julia> xtxb = fill(-12345.6789, 100, 100);
julia> xtx2 = @view(xtxb[40:63, 40:63]);
julia> Octavian.matmul!(xtx2, X', X);
julia> xtx2 ≈ X' * X
true
julia> all(==(first(xtxb)), @view(xtxb[1:39,:]))
true
julia> all(==(first(xtxb)), @view(xtxb[64:end,:]))
true
julia> all(==(first(xtxb)), @view(xtxb[40:63,1:39]))
true
julia> all(==(first(xtxb)), @view(xtxb[40:63,64:end]))
true Can you see if any of these checks fail, implying there was an out of bound access? I tried on both an AVX512 and an AVX2 system, getting all What is your versioninfo() ? |
I suspect the illegal write isn't to What do you get for julia> Octavian.first_cache_size(Val(eltype(X)))
static(65536)
julia> Octavian.first_cache_size(Val(eltype(X))) / length(X)
10.076260762607626 ? |
FYI. |
Do you think you could get an rr trace of the error? |
When using 30 threads to run the command
matmul!(xtx, X', X)
, I encountered an error. However, when using 20 threads, no error was observed. It is important to note that this error is not consistently reproducible and may vary for different matrices X. In this case, the matrix X has dimensions of 271 by 24.ERROR: LoadError: TaskFailedException
The text was updated successfully, but these errors were encountered: