Jutho / Strided.jl

A Julia package for strided array views and efficient manipulations thereof
Other
150 stars 13 forks source link

Computation hangs with more than one thread #4

Closed PetrKryslUCSD closed 5 years ago

PetrKryslUCSD commented 5 years ago

Works with

julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-6650U CPU @ 2.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

but hangs indefinitely with

julia> versioninfo()
Julia Version 1.3.0-DEV.263
Commit 516067b452 (2019-05-21 19:52 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-6650U CPU @ 2.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

I suppose that it may be a regression in Julia itself? Or is this the right place to report the problem?

Jutho commented 5 years ago

This is fine, so was the discourse thread. This problem/symptom also occurred during the 1.2 development cycle, but ended up being fixed by https://github.com/JuliaLang/julia/pull/31733 .

I'll report it there again as well.

PetrKryslUCSD commented 5 years ago

Thanks very much. And thank you for developing Strided. It looks like it will be of some help to me.

JeffBezanson commented 5 years ago

Looks similar to https://github.com/JuliaLang/julia/issues/32087. Only if convenient (not necessary!) would be interesting to check whether this only happens on windows.

PetrKryslUCSD commented 5 years ago

Works fine with

julia> versioninfo()                                                                                                              
Julia Version 1.3.0-DEV.263                                                                                                       
Commit 516067b452 (2019-05-21 19:52 UTC)                                                                                          
Platform Info:                                                                                                                    
  OS: Linux (x86_64-pc-linux-gnu)                                                                                                 
  CPU: Intel(R) Core(TM) i7-6650U CPU @ 2.20GHz                                                                                   
  WORD_SIZE: 64                                                                                                                   
  LIBM: libopenlibm                                                                                                               
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)                                                                                           
Environment:                                                                                                                      
  JULIA_NUM_THREADS = 2   
Jutho commented 5 years ago

this seems to have been fixed on Julia master; can you confirm this @PetrKryslUCSD ?

Jutho commented 5 years ago

If this is no longer an issue, I will close it for now. Feel free to reopen.

PetrKryslUCSD commented 5 years ago

Tested with both Windows 10 and generic Linux, both current nightlies: Works fine. Thanks for fixing it.

Jutho commented 5 years ago

You're welcome, I didn't have to do anything other than report to Julia.