{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/2178","repository_url":"https://api.github.com/repos/dmlc/mxnet","labels_url":"https://api.github.com/repos/dmlc/mxnet/issues/2178/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/mxnet/issues/2178/comments","events_url":"https://api.github.com/repos/dmlc/mxnet/issues/2178/events","html_url":"https://github.com/dmlc/mxnet/issues/2178","id":155477673,"number":2178,"title":"Amalgamation without BLAS","user":{"login":"SlipknotTN","id":10343467,"avatar_url":"https://avatars.githubusercontent.com/u/10343467?v=3","gravatar_id":"","url":"https://api.github.com/users/SlipknotTN","html_url":"https://github.com/SlipknotTN","followers_url":"https://api.github.com/users/SlipknotTN/followers","following_url":"https://api.github.com/users/SlipknotTN/following{/other_user}","gists_url":"https://api.github.com/users/SlipknotTN/gists{/gist_id}","starred_url":"https://api.github.com/users/SlipknotTN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SlipknotTN/subscriptions","organizations_url":"https://api.github.com/users/SlipknotTN/orgs","repos_url":"https://api.github.com/users/SlipknotTN/repos","events_url":"https://api.github.com/users/SlipknotTN/events{/privacy}","received_events_url":"https://api.github.com/users/SlipknotTN/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-18T11:25:14Z","updated_at":"2016-05-30T21:10:08Z","closed_at":"2016-05-20T15:37:43Z","body":"I have a problem completing the amalgamation process without BLAS (make MIN=1).\r\nMy target is to compile an updated mxnet javascript version.\r\n\r\nI manage to complete amalgamation from mxnet.js github version, but not from more recent versions.\r\n\r\nIn particular i can obtain the js files, but I get this runtime error:\r\n\r\n> Check failed: eshape[0] == 0 || eshape == dshape Assignment: Shape of Tensors are not consistent with target\r\n\r\nI get the same runtime error on Android compiling without BLAS (make ANDROID=1 MIN=1), so I think it's a problem related to BLAS absence.\r\n\r\nFor example, if I print the tensor shapes this is the results:\r\n\r\nCorrect version (with BLAS):\r\n\r\n> 1)\r\nEshape 0 147\r\nEshape 1 12321\r\nDshape 0 147\r\nDshape 1 12321\r\n2)\r\nEshape 0 1\r\nEshape 1 96\r\nEshape 2 111\r\nEshape 3 111\r\nDshape 0 1\r\nDshape 1 96\r\nDshape 2 111\r\nDshape 3 111\r\n3)\r\n...\r\n\r\nWithout BLAS:\r\n\r\n> 1)\r\nEshape 0 147\r\nEshape 1 12321\r\nDshape 0 147\r\nDshape 1 12321\r\n2) This is wrong\r\nEshape 0 96\r\nEshape 1 12321\r\nDshape 0 12321\r\nDshape 1 96\r\n3) ...\r\n\r\nOther kinds of errors (inverted dimensions) that I get with default fastpoor model:\r\n\r\n> Eshape 0 x\r\nEshape 1 y\r\nDshape 0 y\r\nDshape 1 x\r\n\r\nIs there some missing functions that can cause this runtime problem?\r\n\r\nMy files:\r\n[mxnet_predict-all.cc.zip](https://github.com/dmlc/mxnet/files/270317/mxnet_predict-all.cc.zip)\r\n[mxnet_predict0.cc.zip](https://github.com/dmlc/mxnet/files/270318/mxnet_predict0.cc.zip)"},"comment":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/comments/222554916","html_url":"https://github.com/dmlc/mxnet/issues/2178#issuecomment-222554916","issue_url":"https://api.github.com/repos/dmlc/mxnet/issues/2178","id":222554916,"user":{"login":"SlipknotTN","id":10343467,"avatar_url":"https://avatars.githubusercontent.com/u/10343467?v=3","gravatar_id":"","url":"https://api.github.com/users/SlipknotTN","html_url":"https://github.com/SlipknotTN","followers_url":"https://api.github.com/users/SlipknotTN/followers","following_url":"https://api.github.com/users/SlipknotTN/following{/other_user}","gists_url":"https://api.github.com/users/SlipknotTN/gists{/gist_id}","starred_url":"https://api.github.com/users/SlipknotTN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SlipknotTN/subscriptions","organizations_url":"https://api.github.com/users/SlipknotTN/orgs","repos_url":"https://api.github.com/users/SlipknotTN/repos","events_url":"https://api.github.com/users/SlipknotTN/events{/privacy}","received_events_url":"https://api.github.com/users/SlipknotTN/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T21:10:08Z","updated_at":"2016-05-30T21:10:08Z","body":"Hi, first of all I cannot compile with ANDROID=1 and MIN=1, but only with MIN=1 for JavaScript and only with ANDROID=1.\r\nAnyway in your case you need to compile with an android toolchain, not with standard g++.\r\nhttps://github.com/dmlc/mxnet/tree/master/amalgamation , see instructions about creating standalone toolchain and set:\r\n\r\n> export PATH = <toolchain_install_dir>/bin:$PATH\r\nexport CC = arm-linux-androideabi-gcc # or arm-linux-androideabi-clang\r\nexport CXX = arm-linux-androideabi-g++ # or arm-linux-androideabi-clang++\r\n"}}
{"actor":{"display_login":"SlipknotTN"}}