Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DQN example with MKL build error #55

Open
kevmal opened this issue Jan 24, 2020 · 1 comment
Open

DQN example with MKL build error #55

kevmal opened this issue Jan 24, 2020 · 1 comment

Comments

@kevmal
Copy link
Owner

kevmal commented Jan 24, 2020

Specifically the python MKL build of libmxnet (mxnet-cu101mkl==1.6.0b20191125) errors on copyToRun after execRun has been used. To reproduce click Use DQN and update the model. Whether it updates while in keyboard mode or DQN mode it will throw:

"MXNDArrayWaitAll: [16:59:32] C:\Jenkins\workspace\mxnet\mxnet\src\ndarray\ndarray.cc:1132: Check failed: to.IsDefaultData(): "
"   at MXNetSharp.Interop.Helper.throwOnError(String call, Int32 returnCode) in E:\profile\Projects\repo\MXNetSharp\MXNetSharp\interop.fs:line 194
   at MXNetSharp.Interop.MXNDArray.waitAll() in E:\profile\Projects\repo\MXNetSharp\MXNetSharp\interop.fs:line 1170
   at MXNetSharp.NDArray.WaitAll() in E:\profile\Projects\repo\MXNetSharp\MXNetSharp\ndarray.fs:line 230
   at FSI_0004.copyToRun@686.Invoke(Unit _arg1) in E:\profile\Projects\repo\MXNetSharp\Examples\DQN\DQN.fsx:line 695
   at FSI_0004.copyToRun() in E:\profile\Projects\repo\MXNetSharp\Examples\DQN\DQN.fsx:line 685
   at FSI_0004.updateModel(TrainState ts) in E:\profile\Projects\repo\MXNetSharp\Examples\DQN\DQN.fsx:line 767
   at FSI_0004.trainer@778.Invoke(TrainState ts) in E:\profile\Projects\repo\MXNetSharp\Examples\DQN\DQN.fsx:line 781
   at FSI_0004.loop@571.Invoke(Int32 frameMove, GameBoard s, TrainState ts) in E:\profile\Projects\repo\MXNetSharp\Examples\DQN\DQN.fsx:line 615
   at FSI_0004.loop@642-8.Invoke(FSharpOption`1 _arg2) in E:\profile\Projects\repo\MXNetSharp\Examples\DQN\DQN.fsx:line 644
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, FSharpFunc`2 userCode, b result1) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 416
   at <StartupCode$FSharp-Core>.$Mailbox.processFirstArrival@313-3.Invoke(AsyncActivation`1 ctxt) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\mailbox.fs:line 313
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in F:\workspace\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 109"

mxnet-cu101==1.6.0b20191125 works fine

@kevmal
Copy link
Owner Author

kevmal commented Jan 29, 2020

Most likely an issue with multithreading in MXNet

See:
apache/mxnet#16431

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant