{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5303","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5303/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5303/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5303/events","html_url":"https://github.com/tensorflow/tensorflow/issues/5303","id":186318753,"number":5303,"title":"Error compiling on ARM with -mfpu=neon: can’t find a register in class ‘LO_REGS’ while reloading ‘asm’","user":{"login":"dprylipko","id":15672564,"avatar_url":"https://avatars3.githubusercontent.com/u/15672564?v=3","gravatar_id":"","url":"https://api.github.com/users/dprylipko","html_url":"https://github.com/dprylipko","followers_url":"https://api.github.com/users/dprylipko/followers","following_url":"https://api.github.com/users/dprylipko/following{/other_user}","gists_url":"https://api.github.com/users/dprylipko/gists{/gist_id}","starred_url":"https://api.github.com/users/dprylipko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dprylipko/subscriptions","organizations_url":"https://api.github.com/users/dprylipko/orgs","repos_url":"https://api.github.com/users/dprylipko/repos","events_url":"https://api.github.com/users/dprylipko/events{/privacy}","received_events_url":"https://api.github.com/users/dprylipko/received_events","type":"User","site_admin":false},"labels":[{"id":473173351,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install","name":"type:build/install","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":{"login":"maciekcc","id":15237924,"avatar_url":"https://avatars3.githubusercontent.com/u/15237924?v=3","gravatar_id":"","url":"https://api.github.com/users/maciekcc","html_url":"https://github.com/maciekcc","followers_url":"https://api.github.com/users/maciekcc/followers","following_url":"https://api.github.com/users/maciekcc/following{/other_user}","gists_url":"https://api.github.com/users/maciekcc/gists{/gist_id}","starred_url":"https://api.github.com/users/maciekcc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciekcc/subscriptions","organizations_url":"https://api.github.com/users/maciekcc/orgs","repos_url":"https://api.github.com/users/maciekcc/repos","events_url":"https://api.github.com/users/maciekcc/events{/privacy}","received_events_url":"https://api.github.com/users/maciekcc/received_events","type":"User","site_admin":false},"assignees":[{"login":"maciekcc","id":15237924,"avatar_url":"https://avatars3.githubusercontent.com/u/15237924?v=3","gravatar_id":"","url":"https://api.github.com/users/maciekcc","html_url":"https://github.com/maciekcc","followers_url":"https://api.github.com/users/maciekcc/followers","following_url":"https://api.github.com/users/maciekcc/following{/other_user}","gists_url":"https://api.github.com/users/maciekcc/gists{/gist_id}","starred_url":"https://api.github.com/users/maciekcc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciekcc/subscriptions","organizations_url":"https://api.github.com/users/maciekcc/orgs","repos_url":"https://api.github.com/users/maciekcc/repos","events_url":"https://api.github.com/users/maciekcc/events{/privacy}","received_events_url":"https://api.github.com/users/maciekcc/received_events","type":"User","site_admin":false}],"milestone":null,"comments":13,"created_at":"2016-10-31T15:47:39Z","updated_at":"2017-06-16T22:07:16Z","closed_at":"2017-06-16T22:07:16Z","body":"Hi,\r\n\r\nI am trying to compile TF for an ARM device and to exploit NEON-related optimizations.\r\nBasically, I follow these instructions for PI (my device is a Sabre Board, not PI): https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/makefile\r\n\r\nbut with a bit different flags, namely:\r\n`make -f tensorflow/contrib/makefile/Makefile OPTFLAGS=\"-Ofast -mfpu=neon -funsafe-math-optimizations -ftree-vectorize\" HOST_OS=LINUX`\r\n\r\nbecause my CPU does not support vfpv4:\r\n\r\n```\r\ncat /proc/cpuinfo\r\nprocessor\t: 0\r\nmodel name\t: ARMv7 Processor rev 10 (v7l)\r\nBogoMIPS\t: 7.54\r\nFeatures\t: half thumb fastmult vfp edsp neon vfpv3 tls vfpd32\r\nCPU implementer\t: 0x41\r\nCPU architecture: 7\r\nCPU variant\t: 0x2\r\nCPU part\t: 0xc09\r\nCPU revision\t: 10\r\n```\r\n\r\nThe error I got:\r\n```\r\n/root/tensorflow_exp/tensorflow/contrib/makefile/downloads/gemmlowp/meta/streams_arm_32.h: In static member function ‘static void gemmlowp::meta::GemmExecutorPackLHS::ExecuteDispatch3D(const P&) [with P = gemmlowp::meta::GemmParams<unsigned char, int, gemmlowp::meta::ColumnMajorWithSum, gemmlowp::meta::RowMajorWithSum, gemmlowp::meta::QuantizedStaticPreprocessedAsInt32, gemmlowp::meta::RowMajor>; int m = 1; int n = 8; int k = 8; int m_leftovers = 0; int n_leftovers = 7; int k_leftovers = 4]’:\r\n/root/tensorflow_exp/tensorflow/contrib/makefile/downloads/gemmlowp/meta/streams_arm_32.h:4211:59: error: can’t find a register in class ‘LO_REGS’ while reloading ‘asm’\r\n         \"d25\", \"d26\", \"d27\", \"d28\", \"d29\", \"cc\", \"memory\");\r\n                                                           ^\r\n/root/tensorflow_exp/tensorflow/contrib/makefile/downloads/gemmlowp/meta/streams_arm_32.h:4211:59: error: ‘asm’ operand has impossible constraints\r\nmake: *** [/root/tensorflow_exp/tensorflow/contrib/makefile/gen/obj/tensorflow/core/kernels/meta_support.o] Error 1\r\n```\r\n\r\nAs far as I understand, it complains about too little registers, which wonders me, since ARM has 16 registers. If I remove ` -mfpu=neon` flag, everything works like a charm. \r\n\r\nI would greatly appreciated for any suggestions.\r\n\r\n### Environment info\r\nUbuntu 14.04.4 LTS\r\n`Linux sabresd 4.1.15-1.0.0+g3924425 #1 SMP PREEMPT Sun Mar 13 14:09:51 CST 2016 armv7l armv7l armv7l GNU/Linux`\r\n\r\nInstalled version of CUDA and cuDNN: \r\nNo CUDA installed\r\nTF commit hash: `1fcd6d1294564066c6f92b121a3aaf4ed186dc1a`\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/309145481","html_url":"https://github.com/tensorflow/tensorflow/issues/5303#issuecomment-309145481","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5303","id":309145481,"user":{"login":"itsmeolivia","id":2469592,"avatar_url":"https://avatars1.githubusercontent.com/u/2469592?v=3","gravatar_id":"","url":"https://api.github.com/users/itsmeolivia","html_url":"https://github.com/itsmeolivia","followers_url":"https://api.github.com/users/itsmeolivia/followers","following_url":"https://api.github.com/users/itsmeolivia/following{/other_user}","gists_url":"https://api.github.com/users/itsmeolivia/gists{/gist_id}","starred_url":"https://api.github.com/users/itsmeolivia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsmeolivia/subscriptions","organizations_url":"https://api.github.com/users/itsmeolivia/orgs","repos_url":"https://api.github.com/users/itsmeolivia/repos","events_url":"https://api.github.com/users/itsmeolivia/events{/privacy}","received_events_url":"https://api.github.com/users/itsmeolivia/received_events","type":"User","site_admin":false},"created_at":"2017-06-16T22:07:16Z","updated_at":"2017-06-16T22:07:16Z","body":"Automatically closing due to lack of recent activity. Since this issue is old at this point, please reopen the issue if it still occurs when tried with the latest version of Tensorflow. Thank you."}}
{"actor":{"display_login":"itsmeolivia"}}