{"action":"created","issue":{"url":"https://api.github.com/repos/kysucix/gipuma/issues/24","repository_url":"https://api.github.com/repos/kysucix/gipuma","labels_url":"https://api.github.com/repos/kysucix/gipuma/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/kysucix/gipuma/issues/24/comments","events_url":"https://api.github.com/repos/kysucix/gipuma/issues/24/events","html_url":"https://github.com/kysucix/gipuma/issues/24","id":178563064,"number":24,"title":"segmentation fault for test data","user":{"login":"jakexie","id":17716347,"avatar_url":"https://avatars.githubusercontent.com/u/17716347?v=3","gravatar_id":"","url":"https://api.github.com/users/jakexie","html_url":"https://github.com/jakexie","followers_url":"https://api.github.com/users/jakexie/followers","following_url":"https://api.github.com/users/jakexie/following{/other_user}","gists_url":"https://api.github.com/users/jakexie/gists{/gist_id}","starred_url":"https://api.github.com/users/jakexie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakexie/subscriptions","organizations_url":"https://api.github.com/users/jakexie/orgs","repos_url":"https://api.github.com/users/jakexie/repos","events_url":"https://api.github.com/users/jakexie/events{/privacy}","received_events_url":"https://api.github.com/users/jakexie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-22T09:35:45Z","updated_at":"2016-11-08T01:06:51Z","closed_at":null,"body":"I tried all of the test data, but got the same segmentation fault.  \n\n```\nInput files are: dinoSR0001.png dinoSR0002.png dinoSR0003.png dinoSR0004.png dinoSR0005.png dinoSR0006.png dinoSR0007.png dinoSR0008.png dinoSR0009.png dinoSR\n0010.png dinoSR0011.png dinoSR0012.png dinoSR0013.png dinoSR0014.png dinoSR0015.png dinoSR0016.png\nDetected 1 devices!\nDetected gipuma compatible device: GeForce GTX 860M\nAccepting intersection angle of central rays from 5.000000 to 70.000000 degrees, use --min_angle=<angle> and --max_angle=<angle> to modify them\nTotal number of images used: 6\nSelected views: 1, 2, 3, 13, 14, 15,\nRange of Minimum/Maximum depth is: 2234.52 5958.72, change it with --depth_min=<value> and  --depth_max=<value>\n\nProgram received signal SIGSEGV, Segmentation fault.\ngipuma<float> (gs=...) at /home/super/program/gipuma/gipuma.cu:1846\n\n\n(gdb) bt\n#0  gipuma<float> (gs=...) at /home/super/program/gipuma/gipuma.cu:1846\n#1  0x0000000000434d83 in runcuda (gs=...) at /home/super/program/gipuma/gipuma.cu:1968\n#2  0x0000000000424fd7 in runGipuma (inputFiles=..., outputFiles=..., algParams=..., gtParameters=..., results=...) at /home/super/program/gipuma/main.cpp:972\n#3  0x0000000000427da7 in main (argc=41, argv=0x7fffffffdcc8) at /home/super/program/gipuma/main.cpp:1220\n\n```\n\nThen i locating the error at \"#ifndef shared_hardcoded...#else\" :\n\n```\n1843│ #ifndef SHARED_HARDCODED\n1844│     int blocksize_w = gs.params->box_hsize + 1; // +1 for the gradient computation\n1845│     int blocksize_h = gs.params->box_vsize + 1; // +1 for the gradient computation\n1846├>    WIN_RADIUS_W = (blocksize_w) / (2);\n1847│     WIN_RADIUS_H = (blocksize_h) / (2);\n1848│\n1849│     int BLOCK_W = 32;\n1850│     int BLOCK_H = (BLOCK_W/2);\n1851│     TILE_W = BLOCK_W;\n1852│     TILE_H = BLOCK_H * 2;\n1853│     SHARED_SIZE_W_m  = (TILE_W + WIN_RADIUS_W * 2);\n1854│     SHARED_SIZE_H = (TILE_H + WIN_RADIUS_H * 2);\n1855│     SHARED_SIZE = (SHARED_SIZE_W_m * SHARED_SIZE_H);\n1856│     cudaMemcpyToSymbol (SHARED_SIZE_W, &SHARED_SIZE_W_m, sizeof(SHARED_SIZE_W_m));\n1857│     //SHARED_SIZE_W_host = SHARED_SIZE_W_m;\n1858│ #else\n```\n\nI'm so confusing about this error. I would appreciate for that if anybody could help me. \n"},"comment":{"url":"https://api.github.com/repos/kysucix/gipuma/issues/comments/259014617","html_url":"https://github.com/kysucix/gipuma/issues/24#issuecomment-259014617","issue_url":"https://api.github.com/repos/kysucix/gipuma/issues/24","id":259014617,"user":{"login":"karolis1","id":192848,"avatar_url":"https://avatars.githubusercontent.com/u/192848?v=3","gravatar_id":"","url":"https://api.github.com/users/karolis1","html_url":"https://github.com/karolis1","followers_url":"https://api.github.com/users/karolis1/followers","following_url":"https://api.github.com/users/karolis1/following{/other_user}","gists_url":"https://api.github.com/users/karolis1/gists{/gist_id}","starred_url":"https://api.github.com/users/karolis1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karolis1/subscriptions","organizations_url":"https://api.github.com/users/karolis1/orgs","repos_url":"https://api.github.com/users/karolis1/repos","events_url":"https://api.github.com/users/karolis1/events{/privacy}","received_events_url":"https://api.github.com/users/karolis1/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T01:06:51Z","updated_at":"2016-11-08T01:06:51Z","body":"I had the same problem too (CUDA 8, GTX 1080). I managed to fix it by changing a line in CMakeLists.txt to:\r\n\r\nset(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-O3 --use_fast_math --ptxas-options=-v -std=c++11 --compiler-options -Wall -gencode arch=compute_61,code=sm_61)\r\n\r\nChanging to the latest architecture supported by your card might help."}}
{"actor":{"display_login":"karolis1"}}