We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69b9950 commit 25dcd3cCopy full SHA for 25dcd3c
src/nnpack/NNPACK.jl
@@ -9,7 +9,7 @@ end
9
include(depsjl_path)
10
11
const nnlib_interface_path = joinpath(dirname(@__FILE__), "interface.jl")
12
-global shared_threadpool = Ref(C_NULL)
+const shared_threadpool = Ref(C_NULL)
13
14
@init begin
15
check_deps()
@@ -24,5 +24,5 @@ global shared_threadpool = Ref(C_NULL)
24
catch
25
global NNPACK_CPU_THREADS = 4
26
end
27
- global shared_threadpool = Ref(pthreadpool_create(NNPACK_CPU_THREADS))
+ shared_threadpool[] = pthreadpool_create(NNPACK_CPU_THREADS)
28
0 commit comments