You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Change nthreads default to nothing in solver
* Update AbstractFixedEffectSolver to use optional nthreads
* Allow optional nthreads parameter in AbstractFixedEffectSolver
* Change nthreads parameter to 'nothing' in solver functions
* Bump version from 2.5.2 to 2.6.0
* Update method and double_precision arguments in functions
* Fix capitalization of 'Metal' in method argument
* Update benchmark_Metal.jl
* Reformat function signatures for consistency
* Decrease maxiter by 1 in lsmr! call
* safer to use Int for big arrays and not more costly
* Update MetalExt.jl
* better to do chunkis of 100_000 even if it means more threads than Threads.nthreads
* Update SolverCPU.jl
* used shared arrays for Metal
* Update Project.toml
* Update AbstractFixedEffectSolver.jl
* Update MetalExt.jl
* rmv nthreads
@@ -101,11 +102,7 @@ function FixedEffects.AbstractFixedEffectSolver{T}(fes::Vector{<:FixedEffect}, w
101
102
end
102
103
103
104
function FixedEffects.AbstractFixedEffectSolver{T}(fes::Vector{<:FixedEffect}, weights::AbstractWeights, ::Type{Val{:CUDA}}, nthreads =nothing) where {T}
104
-
if nthreads ===nothing
105
-
nthreads =256
106
-
end
107
-
nthreads = prevpow(2, nthreads)
108
-
m = FixedEffectLinearMapCUDA{T}(fes, nthreads)
105
+
m = FixedEffectLinearMapCUDA{T}(fes)
109
106
b = CUDA.zeros(T, length(weights))
110
107
r = CUDA.zeros(T, length(weights))
111
108
x = FixedEffectCoefficients([CUDA.zeros(T, fe.n) for fe in fes])
@@ -120,15 +117,16 @@ end
120
117
function FixedEffects.update_weights!(feM::FixedEffectSolverCUDA{T}, weights::AbstractWeights) where {T}
tmp::Vector{T}# used to convert AbstractVector to Vector{T}
172
175
fes::Vector{<:FixedEffect}
173
176
end
177
+
174
178
175
179
function FixedEffects.AbstractFixedEffectSolver{T}(fes::Vector{<:FixedEffect}, weights::AbstractWeights, ::Type{Val{:Metal}}, nthreads =nothing) where {T}
0 commit comments