{"action":"created","issue":{"url":"https://api.github.com/repos/pcpratts/rootbeer1/issues/189","repository_url":"https://api.github.com/repos/pcpratts/rootbeer1","labels_url":"https://api.github.com/repos/pcpratts/rootbeer1/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/pcpratts/rootbeer1/issues/189/comments","events_url":"https://api.github.com/repos/pcpratts/rootbeer1/issues/189/events","html_url":"https://github.com/pcpratts/rootbeer1/issues/189","id":181434844,"number":189,"title":"Exception in thread \"main\" java.lang.ClassCastException: ScalarAddKernel cannot be cast to org.trifort.rootbeer.runtime.CompiledKernel","user":{"login":"jasonwee","id":3326279,"avatar_url":"https://avatars.githubusercontent.com/u/3326279?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonwee","html_url":"https://github.com/jasonwee","followers_url":"https://api.github.com/users/jasonwee/followers","following_url":"https://api.github.com/users/jasonwee/following{/other_user}","gists_url":"https://api.github.com/users/jasonwee/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonwee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonwee/subscriptions","organizations_url":"https://api.github.com/users/jasonwee/orgs","repos_url":"https://api.github.com/users/jasonwee/repos","events_url":"https://api.github.com/users/jasonwee/events{/privacy}","received_events_url":"https://api.github.com/users/jasonwee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-06T14:43:08Z","updated_at":"2016-10-08T21:55:41Z","closed_at":null,"body":"hi there, \r\n\r\ngoing over this example https://github.com/pcpratts/rootbeer1/tree/master/examples/ScalarAddApp/src/org/trifort/rootbeer/examples/scalaradd\r\n\r\nand then compile rootbeer using the source from this repository, and then run the code using the following command\r\n\r\n    $ optirun /jvm/jdk1.8.0_102/bin/java -cp ../../../lib/Rootbeer.jar:. ScalarAddApp\r\n    startarray[0]: 0\r\n    startarray[1]: 1\r\n    startarray[2]: 2\r\n    startarray[3]: 3\r\n    startarray[4]: 4\r\n    startarray[5]: 5\r\n    startarray[6]: 6\r\n    startarray[7]: 7\r\n    startarray[8]: 8\r\n    startarray[9]: 9\r\n    Exception in thread \"main\" java.lang.ClassCastException: ScalarAddKernel cannot be cast to org.trifort.rootbeer.runtime.CompiledKernel\r\n    \tat org.trifort.rootbeer.runtime.CUDAContext.setKernel(CUDAContext.java:119)\r\n    \tat org.trifort.rootbeer.runtime.Rootbeer.run(Rootbeer.java:84)\r\n    \tat ScalarAddApp.multArray(ScalarAddApp.java:19)\r\n    \tat ScalarAddApp.main(ScalarAddApp.java:38)\r\n\r\nwhat did i do wrong?"},"comment":{"url":"https://api.github.com/repos/pcpratts/rootbeer1/issues/comments/252450641","html_url":"https://github.com/pcpratts/rootbeer1/issues/189#issuecomment-252450641","issue_url":"https://api.github.com/repos/pcpratts/rootbeer1/issues/189","id":252450641,"user":{"login":"jasonwee","id":3326279,"avatar_url":"https://avatars.githubusercontent.com/u/3326279?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonwee","html_url":"https://github.com/jasonwee","followers_url":"https://api.github.com/users/jasonwee/followers","following_url":"https://api.github.com/users/jasonwee/following{/other_user}","gists_url":"https://api.github.com/users/jasonwee/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonwee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonwee/subscriptions","organizations_url":"https://api.github.com/users/jasonwee/orgs","repos_url":"https://api.github.com/users/jasonwee/repos","events_url":"https://api.github.com/users/jasonwee/events{/privacy}","received_events_url":"https://api.github.com/users/jasonwee/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T21:55:41Z","updated_at":"2016-10-08T21:55:41Z","body":"rerun with and without optirun\r\n\r\n```\r\n$ /jvm/jdk1.8.0_102/bin/java -cp ../../../lib/Rootbeer.jar:. ScalarAddApp \r\nstartarray[0]: 0\r\nstartarray[1]: 1\r\nstartarray[2]: 2\r\nstartarray[3]: 3\r\nstartarray[4]: 4\r\nstartarray[5]: 5\r\nstartarray[6]: 6\r\nstartarray[7]: 7\r\nstartarray[8]: 8\r\nstartarray[9]: 9\r\nException in thread \"main\" java.lang.NullPointerException\r\n\tat org.trifort.rootbeer.runtime.Rootbeer.run(Rootbeer.java:81)\r\n\tat ScalarAddApp.multArray(ScalarAddApp.java:23)\r\n\tat ScalarAddApp.main(ScalarAddApp.java:42)\r\n\r\n\r\n\r\n$ optirun /jvm/jdk1.8.0_102/bin/java -cp ../../../lib/Rootbeer.jar:. ScalarAddApp \r\nstartarray[0]: 0\r\nstartarray[1]: 1\r\nstartarray[2]: 2\r\nstartarray[3]: 3\r\nstartarray[4]: 4\r\nstartarray[5]: 5\r\nstartarray[6]: 6\r\nstartarray[7]: 7\r\nstartarray[8]: 8\r\nstartarray[9]: 9\r\nException in thread \"main\" java.lang.ClassCastException: play.learn.gpu.rootbeer1.ScalarAddKernel cannot be cast to org.trifort.rootbeer.runtime.CompiledKernel\r\n\tat org.trifort.rootbeer.runtime.CUDAContext.setKernel(CUDAContext.java:119)\r\n\tat org.trifort.rootbeer.runtime.Rootbeer.run(Rootbeer.java:84)\r\n\tat ScalarAddApp.multArray(ScalarAddApp.java:23)\r\n\tat ScalarAddApp.main(ScalarAddApp.java:42)\r\n```"}}
{"actor":{"display_login":"jasonwee"}}