File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 33
33
34
34
# If we have a download, and we are unsatisfied (or the version we're
35
35
# trying to install is not itself installed) then load it up!
36
- if unsatisfied || ! isinstalled (dl_info... ; prefix= prefix)
37
- # Download and install binaries
36
+ # Download and install binaries
37
+ use_nnpack = get (ENV , " NNLIB_USE_NNPACK" , " false" ) == " true"
38
+ os_support = Sys. islinux () || Sys. isapple ()
39
+ if use_nnpack && os_support
40
+ if unsatisfied || ! isinstalled (dl_info... ; prefix= prefix)
38
41
install (dl_info... ; prefix= prefix, force= true , verbose= verbose)
42
+ # Write out a deps.jl file that will contain mappings for our products
43
+ write_deps_file (joinpath (@__DIR__ , " deps.jl" ), products, verbose= verbose)
44
+ end
45
+ else
46
+ open (joinpath (@__DIR__ , " deps.jl" ), " w" ) do io
47
+ write (io, " check_deps() = false" )
48
+ end
39
49
end
40
50
41
- # Write out a deps.jl file that will contain mappings for our products
42
- write_deps_file (joinpath (@__DIR__ , " deps.jl" ), products, verbose= verbose)
You can’t perform that action at this time.
0 commit comments