{"action":"created","comment":{"url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/pulls/comments/32374726","id":32374726,"diff_hunk":"@@ -71,47 +77,43 @@ double grindNonces(size_t items_per_iter, int cycles_per_iter) {\n \t\t}\n \t\ttarget_corrupt_flag = 1;\n \t\tprintf(\"Received corrupt target from Sia\\n\");\n-\t\tprintf(\"Usually this resolves itself within a minute or so\\n\");\n-\t\tprintf(\"If it happens frequently trying increasing seconds per iteration\\n\");\n-\t\tprintf(\"e.g. \\\"./gpu-miner -s 3 -c 200\\\"\\n\");\n \t\tprintf(\"Waiting for problem to be resolved...\");\n \t\tfflush(stdout);\n+\t\treturn -1;\n \t}\n \ttarget_corrupt_flag = 0;\n+\tsize_t global_item_size = 1 << intensity;\n+\n+\t// Copy target to header\n+\tfor (i = 0; i < 8; i++) {\n+\t\tblockHeader[i + 32] = target[7-i];\n+\t}","path":"sia-gpu-miner.c","position":75,"original_position":75,"commit_id":"05e8ea90b281f0abd905dc4a477679d22c8af7e4","original_commit_id":"05e8ea90b281f0abd905dc4a477679d22c8af7e4","user":{"login":"lukechampine","id":3344749,"avatar_url":"https://avatars.githubusercontent.com/u/3344749?v=3","gravatar_id":"","url":"https://api.github.com/users/lukechampine","html_url":"https://github.com/lukechampine","followers_url":"https://api.github.com/users/lukechampine/followers","following_url":"https://api.github.com/users/lukechampine/following{/other_user}","gists_url":"https://api.github.com/users/lukechampine/gists{/gist_id}","starred_url":"https://api.github.com/users/lukechampine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukechampine/subscriptions","organizations_url":"https://api.github.com/users/lukechampine/orgs","repos_url":"https://api.github.com/users/lukechampine/repos","events_url":"https://api.github.com/users/lukechampine/events{/privacy}","received_events_url":"https://api.github.com/users/lukechampine/received_events","type":"User","site_admin":false},"body":"`memcpy`?","created_at":"2015-06-13T23:08:45Z","updated_at":"2015-06-13T23:08:45Z","html_url":"https://github.com/NebulousLabs/Sia-GPU-Miner/pull/20#discussion_r32374726","pull_request_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/pulls/comments/32374726"},"html":{"href":"https://github.com/NebulousLabs/Sia-GPU-Miner/pull/20#discussion_r32374726"},"pull_request":{"href":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/pulls/20","id":37630719,"html_url":"https://github.com/NebulousLabs/Sia-GPU-Miner/pull/20","diff_url":"https://github.com/NebulousLabs/Sia-GPU-Miner/pull/20.diff","patch_url":"https://github.com/NebulousLabs/Sia-GPU-Miner/pull/20.patch","issue_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/issues/20","number":20,"state":"open","locked":false,"title":"Optimize and simplify kernel","user":{"login":"JoshVorick","id":3613237,"avatar_url":"https://avatars.githubusercontent.com/u/3613237?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshVorick","html_url":"https://github.com/JoshVorick","followers_url":"https://api.github.com/users/JoshVorick/followers","following_url":"https://api.github.com/users/JoshVorick/following{/other_user}","gists_url":"https://api.github.com/users/JoshVorick/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshVorick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshVorick/subscriptions","organizations_url":"https://api.github.com/users/JoshVorick/orgs","repos_url":"https://api.github.com/users/JoshVorick/repos","events_url":"https://api.github.com/users/JoshVorick/events{/privacy}","received_events_url":"https://api.github.com/users/JoshVorick/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-13T20:17:04Z","updated_at":"2015-06-13T23:08:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42220dd861788245890e3c541db46d6afb91fb51","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/pulls/20/commits","review_comments_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/pulls/20/comments","review_comment_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/issues/20/comments","statuses_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/statuses/05e8ea90b281f0abd905dc4a477679d22c8af7e4","head":{"label":"NebulousLabs:kernel","ref":"kernel","sha":"05e8ea90b281f0abd905dc4a477679d22c8af7e4","user":{"login":"NebulousLabs","id":7471422,"avatar_url":"https://avatars.githubusercontent.com/u/7471422?v=3","gravatar_id":"","url":"https://api.github.com/users/NebulousLabs","html_url":"https://github.com/NebulousLabs","followers_url":"https://api.github.com/users/NebulousLabs/followers","following_url":"https://api.github.com/users/NebulousLabs/following{/other_user}","gists_url":"https://api.github.com/users/NebulousLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/NebulousLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NebulousLabs/subscriptions","organizations_url":"https://api.github.com/users/NebulousLabs/orgs","repos_url":"https://api.github.com/users/NebulousLabs/repos","events_url":"https://api.github.com/users/NebulousLabs/events{/privacy}","received_events_url":"https://api.github.com/users/NebulousLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":36555897,"name":"Sia-GPU-Miner","full_name":"NebulousLabs/Sia-GPU-Miner","owner":{"login":"NebulousLabs","id":7471422,"avatar_url":"https://avatars.githubusercontent.com/u/7471422?v=3","gravatar_id":"","url":"https://api.github.com/users/NebulousLabs","html_url":"https://github.com/NebulousLabs","followers_url":"https://api.github.com/users/NebulousLabs/followers","following_url":"https://api.github.com/users/NebulousLabs/following{/other_user}","gists_url":"https://api.github.com/users/NebulousLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/NebulousLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NebulousLabs/subscriptions","organizations_url":"https://api.github.com/users/NebulousLabs/orgs","repos_url":"https://api.github.com/users/NebulousLabs/repos","events_url":"https://api.github.com/users/NebulousLabs/events{/privacy}","received_events_url":"https://api.github.com/users/NebulousLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NebulousLabs/Sia-GPU-Miner","description":"A GPU Miner for Sia","fork":false,"url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner","forks_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/forks","keys_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/teams","hooks_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/hooks","issue_events_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/issues/events{/number}","events_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/events","assignees_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/assignees{/user}","branches_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/branches{/branch}","tags_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/tags","blobs_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/git/refs{/sha}","trees_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/statuses/{sha}","languages_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/languages","stargazers_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/stargazers","contributors_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/contributors","subscribers_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/subscribers","subscription_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/subscription","commits_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/commits{/sha}","git_commits_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/git/commits{/sha}","comments_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/comments{/number}","issue_comment_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/issues/comments{/number}","contents_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/contents/{+path}","compare_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/merges","archive_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/downloads","issues_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/issues{/number}","pulls_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/pulls{/number}","milestones_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/milestones{/number}","notifications_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/labels{/name}","releases_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/releases{/id}","created_at":"2015-05-30T11:45:36Z","updated_at":"2015-06-01T05:18:58Z","pushed_at":"2015-06-13T20:29:15Z","git_url":"git://github.com/NebulousLabs/Sia-GPU-Miner.git","ssh_url":"git@github.com:NebulousLabs/Sia-GPU-Miner.git","clone_url":"https://github.com/NebulousLabs/Sia-GPU-Miner.git","svn_url":"https://github.com/NebulousLabs/Sia-GPU-Miner","homepage":null,"size":410,"stargazers_count":2,"watchers_count":2,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":9,"forks":5,"open_issues":9,"watchers":2,"default_branch":"master"}},"base":{"label":"NebulousLabs:master","ref":"master","sha":"2465eddc2c2a8c8869e3c55261bf72f17d81c605","user":{"login":"NebulousLabs","id":7471422,"avatar_url":"https://avatars.githubusercontent.com/u/7471422?v=3","gravatar_id":"","url":"https://api.github.com/users/NebulousLabs","html_url":"https://github.com/NebulousLabs","followers_url":"https://api.github.com/users/NebulousLabs/followers","following_url":"https://api.github.com/users/NebulousLabs/following{/other_user}","gists_url":"https://api.github.com/users/NebulousLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/NebulousLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NebulousLabs/subscriptions","organizations_url":"https://api.github.com/users/NebulousLabs/orgs","repos_url":"https://api.github.com/users/NebulousLabs/repos","events_url":"https://api.github.com/users/NebulousLabs/events{/privacy}","received_events_url":"https://api.github.com/users/NebulousLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":36555897,"name":"Sia-GPU-Miner","full_name":"NebulousLabs/Sia-GPU-Miner","owner":{"login":"NebulousLabs","id":7471422,"avatar_url":"https://avatars.githubusercontent.com/u/7471422?v=3","gravatar_id":"","url":"https://api.github.com/users/NebulousLabs","html_url":"https://github.com/NebulousLabs","followers_url":"https://api.github.com/users/NebulousLabs/followers","following_url":"https://api.github.com/users/NebulousLabs/following{/other_user}","gists_url":"https://api.github.com/users/NebulousLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/NebulousLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NebulousLabs/subscriptions","organizations_url":"https://api.github.com/users/NebulousLabs/orgs","repos_url":"https://api.github.com/users/NebulousLabs/repos","events_url":"https://api.github.com/users/NebulousLabs/events{/privacy}","received_events_url":"https://api.github.com/users/NebulousLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NebulousLabs/Sia-GPU-Miner","description":"A GPU Miner for Sia","fork":false,"url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner","forks_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/forks","keys_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/teams","hooks_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/hooks","issue_events_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/issues/events{/number}","events_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/events","assignees_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/assignees{/user}","branches_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/branches{/branch}","tags_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/tags","blobs_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/git/refs{/sha}","trees_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/statuses/{sha}","languages_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/languages","stargazers_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/stargazers","contributors_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/contributors","subscribers_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/subscribers","subscription_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/subscription","commits_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/commits{/sha}","git_commits_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/git/commits{/sha}","comments_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/comments{/number}","issue_comment_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/issues/comments{/number}","contents_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/contents/{+path}","compare_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/merges","archive_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/downloads","issues_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/issues{/number}","pulls_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/pulls{/number}","milestones_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/milestones{/number}","notifications_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/labels{/name}","releases_url":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/releases{/id}","created_at":"2015-05-30T11:45:36Z","updated_at":"2015-06-01T05:18:58Z","pushed_at":"2015-06-13T20:29:15Z","git_url":"git://github.com/NebulousLabs/Sia-GPU-Miner.git","ssh_url":"git@github.com:NebulousLabs/Sia-GPU-Miner.git","clone_url":"https://github.com/NebulousLabs/Sia-GPU-Miner.git","svn_url":"https://github.com/NebulousLabs/Sia-GPU-Miner","homepage":null,"size":410,"stargazers_count":2,"watchers_count":2,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":9,"forks":5,"open_issues":9,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/pulls/20"},"html":{"href":"https://github.com/NebulousLabs/Sia-GPU-Miner/pull/20"},"issue":{"href":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/issues/20"},"comments":{"href":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/NebulousLabs/Sia-GPU-Miner/statuses/05e8ea90b281f0abd905dc4a477679d22c8af7e4"}}}}