This repository was archived by the owner on Mar 12, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +9
-9
lines changed Expand file tree Collapse file tree 9 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ function functional(show_reason::Bool=false)
3535 if configured[] === nothing
3636 _functional (show_reason)
3737 end
38- configured[]
38+ configured[]:: Bool
3939end
4040
4141const configure_lock = ReentrantLock ()
Original file line number Diff line number Diff line change 4949
5050function initialize_api ()
5151 # make sure the calling thread has an active context
52- CUDAnative. context ()
52+ CUDAnative. initialize_context ()
5353end
5454
5555macro check (ex)
Original file line number Diff line number Diff line change 2121
2222function initialize_api ()
2323 # make sure the calling thread has an active context
24- CUDAnative. context ()
24+ CUDAnative. initialize_context ()
2525end
2626
2727macro check (ex)
Original file line number Diff line number Diff line change 6363
6464function initialize_api ()
6565 # make sure the calling thread has an active context
66- CUDAnative. context ()
66+ CUDAnative. initialize_context ()
6767end
6868
6969macro check (ex)
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ synchronized right before and after executing `ex` to exclude any external effec
280280macro time (ex)
281281 quote
282282 # @time might surround an application, so be sure to initialize CUDA before that
283- CUDAnative. context ()
283+ CUDAnative. initialize_context ()
284284
285285 # coarse synchronization to exclude effects from previously-executed code
286286 CUDAdrv. synchronize ()
Original file line number Diff line number Diff line change 5555
5656function initialize_api ()
5757 # make sure the calling thread has an active context
58- CUDAnative. context ()
58+ CUDAnative. initialize_context ()
5959end
6060
6161macro check (ex)
Original file line number Diff line number Diff line change 4545
4646function initialize_api ()
4747 # make sure the calling thread has an active context
48- CUDAnative. context ()
48+ CUDAnative. initialize_context ()
4949end
5050
5151macro check (ex)
Original file line number Diff line number Diff line change 2323
2424function initialize_api ()
2525 # make sure the calling thread has an active context
26- CUDAnative. context ()
26+ CUDAnative. initialize_context ()
2727end
2828
2929macro check (ex)
Original file line number Diff line number Diff line change 5757
5858function initialize_api ()
5959 # make sure the calling thread has an active context
60- CUDAnative. context ()
60+ CUDAnative. initialize_context ()
6161end
6262
6363macro check (ex)
You can’t perform that action at this time.
0 commit comments