Skip to content

Commit

Permalink
re-trigger build
Browse files Browse the repository at this point in the history
  • Loading branch information
axsk committed Jan 22, 2024
1 parent a5fccc6 commit 9da7184
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cuda.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@

pickclosest(haystack::CuArray, needles::AbstractVector) = pickclosest(collect(haystack), needles)

""" gpu!(iso::IsoRun)
move the model and data of the given `IsoRun` to the GPU for CUDA support
"""
function gpu!(iso::IsoRun)
iso.model = Flux.gpu(iso.model)
iso.data = Flux.gpu(iso.data)
return
end

propagate(ms::MollyLangevin, x0::CuMatrix, ny) = propagate(ms, collect(x0), ny)

""" Fallback to simulate MD dynamics on the CPU """
propagate(ms::MollyLangevin, x0::CuMatrix, ny) = propagate(ms, collect(x0), ny)


# given an (i,j,k) sized array compute the pairwise dists between j points in i dimensions,
Expand Down

0 comments on commit 9da7184

Please sign in to comment.