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

TestLargeBatch does not end and gives different results #44

Open
owulveryck opened this issue Sep 4, 2019 · 0 comments
Open

TestLargeBatch does not end and gives different results #44

owulveryck opened this issue Sep 4, 2019 · 0 comments

Comments

@owulveryck
Copy link
Member

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

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