This repository was archived by the owner on Mar 12, 2021. It is now read-only.
File tree 9 files changed +11
-10
lines changed
9 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ function functional(show_reason::Bool=false)
35
35
if configured[] === nothing
36
36
_functional (show_reason)
37
37
end
38
- configured[]
38
+ configured[]:: Bool
39
39
end
40
40
41
41
const configure_lock = ReentrantLock ()
Original file line number Diff line number Diff line change 48
48
end
49
49
50
50
function initialize_api ()
51
- # make sure the calling thread has an active context
52
- CUDAnative. context ()
51
+ # make sure the callin
52
+ g thread has an active context
53
+ CUDAnative. initialize_context ()
53
54
end
54
55
55
56
macro check (ex)
Original file line number Diff line number Diff line change 21
21
22
22
function initialize_api ()
23
23
# make sure the calling thread has an active context
24
- CUDAnative. context ()
24
+ CUDAnative. initialize_context ()
25
25
end
26
26
27
27
macro check (ex)
Original file line number Diff line number Diff line change 63
63
64
64
function initialize_api ()
65
65
# make sure the calling thread has an active context
66
- CUDAnative. context ()
66
+ CUDAnative. initialize_context ()
67
67
end
68
68
69
69
macro 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
280
280
macro time (ex)
281
281
quote
282
282
# @time might surround an application, so be sure to initialize CUDA before that
283
- CUDAnative. context ()
283
+ CUDAnative. initialize_context ()
284
284
285
285
# coarse synchronization to exclude effects from previously-executed code
286
286
CUDAdrv. synchronize ()
Original file line number Diff line number Diff line change 55
55
56
56
function initialize_api ()
57
57
# make sure the calling thread has an active context
58
- CUDAnative. context ()
58
+ CUDAnative. initialize_context ()
59
59
end
60
60
61
61
macro check (ex)
Original file line number Diff line number Diff line change 45
45
46
46
function initialize_api ()
47
47
# make sure the calling thread has an active context
48
- CUDAnative. context ()
48
+ CUDAnative. initialize_context ()
49
49
end
50
50
51
51
macro check (ex)
Original file line number Diff line number Diff line change 23
23
24
24
function initialize_api ()
25
25
# make sure the calling thread has an active context
26
- CUDAnative. context ()
26
+ CUDAnative. initialize_context ()
27
27
end
28
28
29
29
macro check (ex)
Original file line number Diff line number Diff line change 57
57
58
58
function initialize_api ()
59
59
# make sure the calling thread has an active context
60
- CUDAnative. context ()
60
+ CUDAnative. initialize_context ()
61
61
end
62
62
63
63
macro check (ex)
You can’t perform that action at this time.
0 commit comments