Skip to content

Commit

Permalink
Fix docs to include CUDA (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludvigak authored Jul 5, 2024
1 parent 1973914 commit 7c12ff4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"

[compat]
Documenter = "~0.25"
Documenter = "1"
CUDA = "5"
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Documenter
using FINUFFT
using CUDA, FINUFFT

makedocs(sitename="FINUFFT.jl")

Expand Down
25 changes: 25 additions & 0 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,31 @@ const nufft_c_opts = nufft_opts # for backward compatibility - remove?
#
# This must match definition in
# finufft/include/cufinufft_opts.h
"""
mutable struct cufinufft_opts
upsampfac :: Cdouble # upsampling ratio sigma, only 2.0 (standard) is implemented
# following options are for gpu #
gpu_method :: Cint # 1: nonuniform-pts driven, 2: shared mem (SM)
gpu_sort :: Cint # when NU-pts driven: 0: no sort (GM), 1: sort (GM-sort)
gpu_binsizex :: Cint # used for 2D, 3D subproblem method
gpu_binsizey :: Cint
gpu_binsizez :: Cint
gpu_obinsizex :: Cint # used for 3D spread block gather method
gpu_obinsizey :: Cint
gpu_obinsizez :: Cint
gpu_maxsubprobsize :: Cint
gpu_kerevalmeth :: Cint # 0: direct exp(sqrt()), 1: Horner ppval
gpu_spreadinterponly :: Cint # 0: NUFFT, 1: spread or interpolation only
gpu_maxbatchsize :: Cint
# multi-gpu support #
gpu_device_id :: Cint
gpu_stream :: Ptr{Cvoid}
modeord :: Cint # (type 1,2 only): 0 CMCL-style increasing mode order
# 1 FFT-style mode order
end
Options struct passed to cuFINUFFT, see C documentation.
"""
mutable struct cufinufft_opts
upsampfac :: Cdouble # upsampling ratio sigma, only 2.0 (standard) is implemented

Expand Down

0 comments on commit 7c12ff4

Please sign in to comment.