{"action":"created","issue":{"url":"https://api.github.com/repos/torch/cutorch/issues/213","labels_url":"https://api.github.com/repos/torch/cutorch/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/torch/cutorch/issues/213/comments","events_url":"https://api.github.com/repos/torch/cutorch/issues/213/events","html_url":"https://github.com/torch/cutorch/issues/213","id":98394008,"number":213,"title":"mm/addmm fails with stride=0","user":{"login":"avnermay","id":1476129,"avatar_url":"https://avatars.githubusercontent.com/u/1476129?v=3","gravatar_id":"","url":"https://api.github.com/users/avnermay","html_url":"https://github.com/avnermay","followers_url":"https://api.github.com/users/avnermay/followers","following_url":"https://api.github.com/users/avnermay/following{/other_user}","gists_url":"https://api.github.com/users/avnermay/gists{/gist_id}","starred_url":"https://api.github.com/users/avnermay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avnermay/subscriptions","organizations_url":"https://api.github.com/users/avnermay/orgs","repos_url":"https://api.github.com/users/avnermay/repos","events_url":"https://api.github.com/users/avnermay/events{/privacy}","received_events_url":"https://api.github.com/users/avnermay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-31T13:47:41Z","updated_at":"2015-07-31T14:00:45Z","closed_at":null,"body":"require 'cutorch'\r\ntorch.setdefaulttensortype('torch.CudaTensor')\r\nA = torch.randn(100,3200)\r\nB = torch.randn(1,10):expand(100,10)\r\nC = torch.randn(10,3200)\r\ntorch.mm(B,C) -- THIS LINE THROWS ERROR\r\nA:addmm(0,1,B,C) -- THIS LINE DOES TOO\r\n\r\nThis is the error I am getting:\r\n ** On entry to SGEMM  parameter number 10 had an illegal value\r\nSegmentation fault (core dumped)"},"comment":{"url":"https://api.github.com/repos/torch/cutorch/issues/comments/126700762","html_url":"https://github.com/torch/cutorch/issues/213#issuecomment-126700762","issue_url":"https://api.github.com/repos/torch/cutorch/issues/213","id":126700762,"user":{"login":"avnermay","id":1476129,"avatar_url":"https://avatars.githubusercontent.com/u/1476129?v=3","gravatar_id":"","url":"https://api.github.com/users/avnermay","html_url":"https://github.com/avnermay","followers_url":"https://api.github.com/users/avnermay/followers","following_url":"https://api.github.com/users/avnermay/following{/other_user}","gists_url":"https://api.github.com/users/avnermay/gists{/gist_id}","starred_url":"https://api.github.com/users/avnermay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avnermay/subscriptions","organizations_url":"https://api.github.com/users/avnermay/orgs","repos_url":"https://api.github.com/users/avnermay/repos","events_url":"https://api.github.com/users/avnermay/events{/privacy}","received_events_url":"https://api.github.com/users/avnermay/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T14:00:45Z","updated_at":"2015-07-31T14:00:45Z","body":"One additional comment: \r\nThis issue was giving me trouble when doing a backward pass on a Linear node (line 66 of nn.Linear.lua: \"self.gradInput:addmm(0, 1, gradOutput, self.weight)\") -- Given that I have a decently sized code base, it was actually quite time consuming to figure out exactly what line of code was throwing this error.  It would be great if all BLAS/CUBLAS errors were logged to stderr with a stack trace.  Currently, the only thing that appears is the error message I copied above, without any info about what function was causing the error."}}