IanButterworth / SystemBenchmark.jl

Julia package for benchmarking a system
MIT License
43 stars 3 forks source link

File error on Windows? #32

Closed PetrKryslUCSD closed 3 years ago

PetrKryslUCSD commented 3 years ago

I got an error on the following system:

julia> versioninfo()                                                       
Julia Version 1.5.3                                                        
Commit 788b2c77c1 (2020-11-09 13:37 UTC)                                   
Platform Info:                                                             
  OS: Windows (x86_64-w64-mingw32)                                         
  CPU: Intel(R) Core(TM) i7-8705G CPU @ 3.10GHz                            
  WORD_SIZE: 64                                                            
  LIBM: libopenlibm                                                        
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)                                    
Environment:                                                               
  JULIA_NUM_THREADS = 4    

The error has apparently something to do with files:

Compilation tests 86%|█████████████████████████    |  ETA: 0:00:27ERROR: IOError: unlink: resource busy or locked (EBUSY)                             
Stacktrace:                                                                
 [1] uv_error at .\libuv.jl:97 [inlined]                                   
 [2] unlink(::String) at .\file.jl:918                                     
 [3] rm(::String; force::Bool, recursive::Bool) at .\file.jl:268           
 [4] create_expr_cache(::String, ::String, ::Array{Pair{Base.PkgId,UInt64},1}, ::Nothing) at .\loading.jl:1166                                        
 [5] ##core#344(::String, ::String, ::Array{Pair{Base.PkgId,UInt64},1}, ::Base.PkgId) at C:\Users\PetrKrysl\.julia\packages\BenchmarkTools\eCEpo\src\execution.jl:371                                                            
 [6] ##sample#345(::BenchmarkTools.Parameters) at C:\Users\PetrKrysl\.julia\packages\BenchmarkTools\eCEpo\src\execution.jl:377                        
 [7] sample at C:\Users\PetrKrysl\.julia\packages\BenchmarkTools\eCEpo\src\execution.jl:394 [inlined]                                                 
 [8] _lineartrial(::BenchmarkTools.Benchmark{Symbol("##benchmark#343")}, ::BenchmarkTools.Parameters; maxevals::Int64, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at C:\Users\PetrKrysl\.julia\packages\BenchmarkTools\eCEpo\src\execution.jl:133                        
 [9] _lineartrial(::BenchmarkTools.Benchmark{Symbol("##benchmark#343")}, ::BenchmarkTools.Parameters) at C:\Users\PetrKrysl\.julia\packages\BenchmarkTools\eCEpo\src\execution.jl:125                                            
 [10] #invokelatest#1 at .\essentials.jl:710 [inlined]                     
 [11] invokelatest at .\essentials.jl:709 [inlined]                        
 [12] #lineartrial#38 at C:\Users\PetrKrysl\.julia\packages\BenchmarkTools\eCEpo\src\execution.jl:33 [inlined]                                        
 [13] lineartrial at C:\Users\PetrKrysl\.julia\packages\BenchmarkTools\eCEpo\src\execution.jl:33 [inlined]                                            
 [14] tune!(::BenchmarkTools.Benchmark{Symbol("##benchmark#343")}, ::BenchmarkTools.Parameters; progressid::Nothing, nleaves::Float64, ndone::Float64, verbose::Bool, pad::String, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at C:\Users\PetrKrysl\.julia\packages\BenchmarkTools\eCEpo\src\execution.jl:209                                       
 [15] tune! at C:\Users\PetrKrysl\.julia\packages\BenchmarkTools\eCEpo\src\execution.jl:208 [inlined] (repeats 2 times)                               
 [16] macro expansion at C:\Users\PetrKrysl\.julia\packages\BenchmarkTools\eCEpo\src\execution.jl:288 [inlined]                                       
 [17] runbenchmark(; printsysinfo::Bool) at C:\Users\PetrKrysl\.julia\packages\SystemBenchmark\deI1I\src\SystemBenchmark.jl:180                       
 [18] comparetoref() at C:\Users\PetrKrysl\.julia\packages\SystemBenchmark\deI1I\src\SystemBenchmark.jl:93                                            
 [19] top-level scope at REPL[5]:1      
PetrKryslUCSD commented 3 years ago

Fixed with longer delay (1 sec).