Skip to content

Commit

Permalink
Add helpful info message for threads
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjanan committed Feb 22, 2018
1 parent 05de88c commit ab05ad8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ spmatvec(A::SparseMatrixCSC{TA,S}, x::StridedVector{Tx}) where {TA,S,Tx} =
# export spmatvec

@static if haskey(ENV, "JULIA_NUM_THREADS")
info("Initializing AMG to use $(nthreads()) threads")
import Base: *
function *(A::SparseMatrixCSC{T,V}, b::Vector{T}) where {T,V}
m, n = size(A)
Expand Down

0 comments on commit ab05ad8

Please sign in to comment.