Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
mfherbst committed Dec 12, 2022
1 parent 17970f4 commit 83b08e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/gpu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ include("testcases.jl")
scfres_cpu = run_problem(; architecture=DFTK.CPU())
scfres_gpu = run_problem(; architecture=DFTK.GPU(CuArray))
@test abs(scfres_cpu.energies.total - scfres_gpu.energies.total) < 1e-10
@show norm(scfres_cpu.ρ - Array(scfres_gpu.ρ))
@test norm(scfres_cpu.ρ - Array(scfres_gpu.ρ)) < 1e-10
end

# TODO Disabled, because not yet supported ...
Expand Down

0 comments on commit 83b08e1

Please sign in to comment.