{"action":"created","issue":{"url":"https://api.github.com/repos/byzhang/cudpp/issues/16","labels_url":"https://api.github.com/repos/byzhang/cudpp/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/byzhang/cudpp/issues/16/comments","events_url":"https://api.github.com/repos/byzhang/cudpp/issues/16/events","html_url":"https://github.com/byzhang/cudpp/issues/16","id":59730838,"number":16,"title":"Code review request: tools.[h | cpp]","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/byzhang/cudpp/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/cudpp/labels/Milestone-Release1.1","name":"Milestone-Release1.1","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/cudpp/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/cudpp/labels/Type-Review","name":"Type-Review","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-04T00:22:17Z","updated_at":"2015-03-04T00:22:18Z","closed_at":"2015-03-04T00:22:18Z","body":"```\nAdded tools.h and tools.cpp into the trunk.  Once the code is accepted, I\nwill update the code in testrig\n\nI checked the file-finding code in the cutil library and that only searches\n./data/ and ../../../projects/<executable_name>/data/, which is not general\nenough for our purposes.  \n\nBased on John's SPMVMult testrig and my rand testrig, I've written two\ntypes of file searching: finding a directory and finding a file.  I use the\ndirectory finding to find the data/ directory while it seems that John's\nneeds one to find a specific filename.  The idea for both is that the\nfunction will ascend to a parent directory and do a recursive search down\nits children from there.  \n\nSo for example, if I were looking for the data directory and I am in, say \n/cudpp/bin/, then I'd call findDir(\"cudpp\", \"data\", output) where output is\na character array.  In the end of the function, output will contain\n\"../apps/data\".  Note that the recursive search does not search the .svn\ndirectories (I don't think that any data file would be put in there...) \nDitto for the findFile function.\n\nThe code for both file and directory finding uses OS-dependent calls and\nlibraries.  Linux / Mac uses the dirent.h and unistd.h to find the files\nwhile the Windows version uses io.h and direct.h to find the files.  Right\nnow I have only checked the two files tools.cpp and tools.h into the trunk\nand once they are accepted I will check in the revised testrig files.  I\nhave already tried the code on Blaze and this does fix Issue 3 (works as\nwell in Windows on my laptop).  I've tried running the code from various\ndirectories and it finds the regression files no sweat.\n\nStanley\n\n\n\n\n```\n\nOriginal issue reported on code.google.com by `Solgood...@gmail.com` on 24 Jun 2009 at 12:27"},"comment":{"url":"https://api.github.com/repos/byzhang/cudpp/issues/comments/77071793","html_url":"https://github.com/byzhang/cudpp/issues/16#issuecomment-77071793","issue_url":"https://api.github.com/repos/byzhang/cudpp/issues/16","id":77071793,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T00:22:18Z","updated_at":"2015-03-04T00:22:18Z","body":"```\nAdding Release1.1 tag.  I will do this review today.\n```\n\nOriginal comment by `harr...@gmail.com` on 24 Jun 2009 at 9:47\n* Added labels: **Milestone-Release1.1**"}}