JuliaGPU / Adapt.jl

Other
86 stars 24 forks source link

Add support for `LinearAlgebra.Symmetric` #48

Closed simsurace closed 2 years ago

simsurace commented 2 years ago

This PR makes the following code run without errors:

using CUDA, LinearAlgebra
CUDA.allowscalar(false)

A = CUDA.randn(4, 4)
@show Symmetric(A)
maleadt commented 2 years ago

Thanks!

codecov[bot] commented 2 years ago

Codecov Report

Merging #48 (dad62e4) into master (d905dab) will increase coverage by 0.37%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #48      +/-   ##
==========================================
+ Coverage   80.39%   80.76%   +0.37%     
==========================================
  Files           5        5              
  Lines          51       52       +1     
==========================================
+ Hits           41       42       +1     
  Misses         10       10              
Impacted Files Coverage Δ
src/wrappers.jl 70.00% <100.00%> (+1.03%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d905dab...dad62e4. Read the comment docs.