{"action":"created","issue":{"url":"https://api.github.com/repos/karlpauwels/simtrack/issues/3","labels_url":"https://api.github.com/repos/karlpauwels/simtrack/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/karlpauwels/simtrack/issues/3/comments","events_url":"https://api.github.com/repos/karlpauwels/simtrack/issues/3/events","html_url":"https://github.com/karlpauwels/simtrack/issues/3","id":112435599,"number":3,"title":"Unable to generate SIFT models","user":{"login":"mklingen","id":241184,"avatar_url":"https://avatars.githubusercontent.com/u/241184?v=3","gravatar_id":"","url":"https://api.github.com/users/mklingen","html_url":"https://github.com/mklingen","followers_url":"https://api.github.com/users/mklingen/followers","following_url":"https://api.github.com/users/mklingen/following{/other_user}","gists_url":"https://api.github.com/users/mklingen/gists{/gist_id}","starred_url":"https://api.github.com/users/mklingen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mklingen/subscriptions","organizations_url":"https://api.github.com/users/mklingen/orgs","repos_url":"https://api.github.com/users/mklingen/repos","events_url":"https://api.github.com/users/mklingen/events{/privacy}","received_events_url":"https://api.github.com/users/mklingen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-20T18:50:17Z","updated_at":"2015-10-20T19:36:26Z","closed_at":null,"body":"Running the tutorial in `README.md`, I am unable to build the sift model. I get the following:\r\n\r\n```\r\n rosrun interface cmd_line_generate_sift_model `pwd`/src/simtrack/data/object_models/ros_fuerte/ros_fuerte.obj\r\nResizePyramid:\tinvalid texture reference\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nFilterH:\tinvalid device function\r\nFilterV:\tinvalid device function\r\nterminate called after throwing an instance of 'std::length_error'\r\n  what():  vector::_M_fill_insert\r\nAborted\r\n```\r\n\r\nHere is the output of `nvcc --version`:\r\n\r\n```\r\nnvcc: NVIDIA (R) Cuda compiler driver\r\nCopyright (c) 2005-2015 NVIDIA Corporation\r\nBuilt on Mon_Feb_16_22:59:02_CST_2015\r\nCuda compilation tools, release 7.0, V7.0.27\r\n```\r\nAnd here is the output of `deviceQuery`\r\n\r\n```\r\nCUDA Device Query (Runtime API) version (CUDART static linking)\r\n\r\nDetected 1 CUDA Capable device(s)\r\n\r\nDevice 0: \"GeForce GTX 860M\"\r\n  CUDA Driver Version / Runtime Version          7.0 / 7.0\r\n  CUDA Capability Major/Minor version number:    5.0\r\n  Total amount of global memory:                 2048 MBytes (2147352576 bytes)\r\n  ( 5) Multiprocessors, (128) CUDA Cores/MP:     640 CUDA Cores\r\n  GPU Max Clock rate:                            540 MHz (0.54 GHz)\r\n  Memory Clock rate:                             2505 Mhz\r\n  Memory Bus Width:                              128-bit\r\n  L2 Cache Size:                                 2097152 bytes\r\n  Maximum Texture Dimension Size (x,y,z)         1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)\r\n  Maximum Layered 1D Texture Size, (num) layers  1D=(16384), 2048 layers\r\n  Maximum Layered 2D Texture Size, (num) layers  2D=(16384, 16384), 2048 layers\r\n  Total amount of constant memory:               65536 bytes\r\n  Total amount of shared memory per block:       49152 bytes\r\n  Total number of registers available per block: 65536\r\n  Warp size:                                     32\r\n  Maximum number of threads per multiprocessor:  2048\r\n  Maximum number of threads per block:           1024\r\n  Max dimension size of a thread block (x,y,z): (1024, 1024, 64)\r\n  Max dimension size of a grid size    (x,y,z): (2147483647, 65535, 65535)\r\n  Maximum memory pitch:                          2147483647 bytes\r\n  Texture alignment:                             512 bytes\r\n  Concurrent copy and kernel execution:          Yes with 1 copy engine(s)\r\n  Run time limit on kernels:                     Yes\r\n  Integrated GPU sharing Host Memory:            No\r\n  Support host page-locked memory mapping:       Yes\r\n  Alignment requirement for Surfaces:            Yes\r\n  Device has ECC support:                        Disabled\r\n  Device supports Unified Addressing (UVA):      Yes\r\n  Device PCI Domain ID / Bus ID / location ID:   0 / 1 / 0\r\n  Compute Mode:\r\n     < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >\r\n\r\ndeviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 7.0, CUDA Runtime Version = 7.0, NumDevs = 1, Device0 = GeForce GTX 860M\r\nResult = PASS\r\n```\r\nHere is a stack trace from GDB:\r\n\r\n```\r\n#0  0x00007ffff4a65cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56\r\n#1  0x00007ffff4a690d8 in __GI_abort () at abort.c:89\r\n#2  0x00007ffff5370535 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n#3  0x00007ffff536e6d6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n#4  0x00007ffff536e703 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n#5  0x00007ffff536e922 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n#6  0x00007ffff53c0387 in std::__throw_length_error(char const*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6\r\n#7  0x00007ffff7a5d763 in std::vector<float, std::allocator<float> >::_M_fill_insert(__gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >, unsigned long, float const&) () from /usr/local/lib/libopencv_imgproc.so.2.4\r\n#8  0x00007ffff68f12e6 in insert (__x=@0x7fffffffc77c: 0, __n=<optimized out>, __position=..., this=0x12e0af8) at /usr/include/c++/4.8/bits/stl_vector.h:1024\r\n#9  resize (__x=0, __new_size=18446744073112602832, this=0x12e0af8) at /usr/include/c++/4.8/bits/stl_vector.h:707\r\n#10 PyramidCU::GenerateFeatureList (this=this@entry=0x12e0a50, i=i@entry=0, j=j@entry=0, reduction_count=reduction_count@entry=6, hbuffer=...)\r\n    at /home/mklingen/prdev/src/simtrack/siftgpu/src/PyramidCU.cpp:774\r\n#11 0x00007ffff68f1421 in PyramidCU::GenerateFeatureList (this=0x12e0a50) at /home/mklingen/prdev/src/simtrack/siftgpu/src/PyramidCU.cpp:823\r\n#12 0x00007ffff6906220 in SiftPyramid::RunSIFT (this=0x12e0a50, input=<optimized out>) at /home/mklingen/prdev/src/simtrack/siftgpu/src/SiftPyramid.cpp:84\r\n#13 0x00007ffff68fcf15 in SiftGPU::RunSIFT (this=0x7fffffffd130) at /home/mklingen/prdev/src/simtrack/siftgpu/src/SiftGPU.cpp:347\r\n#14 0x0000000000406e37 in main (argc=<optimized out>, argv=<optimized out>) at /home/mklingen/prdev/src/simtrack/interface/src/cmd_line_generate_sift_model.cpp:214\r\n```"},"comment":{"url":"https://api.github.com/repos/karlpauwels/simtrack/issues/comments/149678438","html_url":"https://github.com/karlpauwels/simtrack/issues/3#issuecomment-149678438","issue_url":"https://api.github.com/repos/karlpauwels/simtrack/issues/3","id":149678438,"user":{"login":"karlpauwels","id":8437251,"avatar_url":"https://avatars.githubusercontent.com/u/8437251?v=3","gravatar_id":"","url":"https://api.github.com/users/karlpauwels","html_url":"https://github.com/karlpauwels","followers_url":"https://api.github.com/users/karlpauwels/followers","following_url":"https://api.github.com/users/karlpauwels/following{/other_user}","gists_url":"https://api.github.com/users/karlpauwels/gists{/gist_id}","starred_url":"https://api.github.com/users/karlpauwels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlpauwels/subscriptions","organizations_url":"https://api.github.com/users/karlpauwels/orgs","repos_url":"https://api.github.com/users/karlpauwels/repos","events_url":"https://api.github.com/users/karlpauwels/events{/privacy}","received_events_url":"https://api.github.com/users/karlpauwels/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T19:36:26Z","updated_at":"2015-10-20T19:36:26Z","body":"Thanks for the detailed info. Can you try changing SiftGPU's cmake-file to your architecture (50 instead of 52) and let me know if that fixes it?\r\n\r\nhttps://github.com/karlpauwels/simtrack/blob/37465fe888e6f7961ae0e0805d3a50776b0948b3/siftgpu/CMakeLists.txt#L14\r\n\r\nThis also pops up here:\r\n\r\nhttps://github.com/karlpauwels/simtrack/blob/2856ebfc036dc027e81bd069e927bf9fc0101881/low_level_vision/CMakeLists.txt#L12\r\n\r\nand here:\r\n\r\nhttps://github.com/karlpauwels/simtrack/blob/2856ebfc036dc027e81bd069e927bf9fc0101881/pose_estimation/CMakeLists.txt#L18\r\n\r\nI'll update it permanently if it works.\r\n"}}