cu
cu copied to clipboard
TestLargeBatch does not end and gives different results
When I run go test -tags="cuda" -run=LargeBatch -v, the test display nothing and never finish.
(base) ➜ ip-172-31-49-229 cu git:(master) ✗ go test -tags="cuda" -run=LargeBatch -v
=== RUN TestLargeBatch
2019/09/04 23:04:42 Large batch
^Csignal: interrupt
FAIL gorgonia.org/cu 6.192s
When I run another test before, it is more verbose, but it does not give the same result all the times:
(base) ➜ ip-172-31-49-229 cu git:(master) ✗ go test -tags="cuda" -v
=== RUN TestBatchContext
2019/09/04 23:02:41 BatchContext
--- PASS: TestBatchContext (0.10s)
=== RUN TestLargeBatch
2019/09/04 23:02:41 Large batch
2019/09/04 23:02:42 Errors found true
2019/09/04 23:02:42 Errors:
[0]: ContextIsDestroyed
[1]: ContextIsDestroyed
[2]: ContextIsDestroyed
[3]: ContextIsDestroyed
[4]: ContextIsDestroyed
[5]: ContextIsDestroyed
2019/09/04 23:02:42 Queue: 6
[QUEUE] memcpyHtoD. dest: 0xb047bb000, src: 0xc00012f000, size: 4000
[QUEUE] launchKernel. KernelParams: 0x7f34d4004120
[QUEUE] sync. Current Context 0
[QUEUE] memfreeD. mem: 0xb047ba000
[QUEUE] memfreeD. mem: 0xb047bb000
[QUEUE] allocAndCopy. Size: 4000, src: 0xc00012e000
^Csignal: interrupt
(base) ➜ ip-172-31-49-229 cu git:(master) ✗ go test -tags="cuda" -v
=== RUN TestBatchContext
2019/09/04 23:06:54 BatchContext
--- PASS: TestBatchContext (0.09s)
=== RUN TestLargeBatch
2019/09/04 23:06:54 Large batch
2019/09/04 23:06:54 Errors found true
2019/09/04 23:06:54 Errors:
[0]: ContextIsDestroyed
2019/09/04 23:06:54 Queue: 1
[QUEUE] mallocD. Size 4000
It is just an assumption, but it may be related to Issue 297 of gorgonia