-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from JuliaParallel/an/one
Updates for Julia 1.0
- Loading branch information
Showing
39 changed files
with
515 additions
and
499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
julia 0.6 | ||
Compat 0.31.0 | ||
DistributedArrays 0.4.0 | ||
julia 0.7 | ||
DistributedArrays 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,27 @@ | ||
for (elty, relty, ext) in ((:Float32, :Float32, :s), | ||
(:Float64, :Float64, :d), | ||
(:Complex64, :Float32, :c), | ||
(:Complex128, :Float64, :z)) | ||
for (elty, ext) in ((:Float32, :s), | ||
(:Float64, :d), | ||
(:ComplexF32, :c), | ||
(:ComplexF64, :z)) | ||
|
||
# Distributed sparse gemv | ||
for (trans, elenum) in (("", :NORMAL), ("t", :TRANSPOSE), ("c", :ADJOINT)) | ||
|
||
f = Symbol("A", trans, "_mul_B!") | ||
|
||
@eval begin | ||
function ($f)(α::$elty, A::DistSparseMatrix{$elty}, x::DistMultiVec{$elty}, β::$elty, y::DistMultiVec{$elty}) | ||
ElError(ccall(($(string("ElMultiplyDist_", ext)), libEl), Cuint, | ||
(Cint, $elty, Ptr{Void}, Ptr{Void}, $elty, Ptr{Void}), | ||
$elenum, α, A.obj, x.obj, β, y.obj)) | ||
return y | ||
end | ||
@eval begin | ||
function LinearAlgebra.mul!(y::DistMultiVec{$elty}, A::DistSparseMatrix{$elty}, x::DistMultiVec{$elty}, α::$elty, β::$elty) | ||
ElError(ccall(($(string("ElMultiplyDist_", ext)), libEl), Cuint, | ||
(Cint, $elty, Ptr{Cvoid}, Ptr{Cvoid}, $elty, Ptr{Cvoid}), | ||
NORMAL, α, A.obj, x.obj, β, y.obj)) | ||
return y | ||
end | ||
function LinearAlgebra.mul!(y::DistMultiVec{$elty}, adjA::Adjoint{<:Any,DistSparseMatrix{$elty}}, x::DistMultiVec{$elty}, α::$elty, β::$elty) | ||
ElError(ccall(($(string("ElMultiplyDist_", ext)), libEl), Cuint, | ||
(Cint, $elty, Ptr{Cvoid}, Ptr{Cvoid}, $elty, Ptr{Cvoid}), | ||
ADJOINT, α, parent(adjA).obj, x.obj, β, y.obj)) | ||
return y | ||
end | ||
function LinearAlgebra.mul!(y::DistMultiVec{$elty}, trA::Transpose{<:Any,DistSparseMatrix{$elty}}, x::DistMultiVec{$elty}, α::$elty, β::$elty) | ||
ElError(ccall(($(string("ElMultiplyDist_", ext)), libEl), Cuint, | ||
(Cint, $elty, Ptr{Cvoid}, Ptr{Cvoid}, $elty, Ptr{Cvoid}), | ||
TRANSPOSE, α, parent(trA).obj, x.obj, β, y.obj)) | ||
return y | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.