{"action":"created","issue":{"url":"https://api.github.com/repos/opensciencegrid/htcondor-ce/issues/36","labels_url":"https://api.github.com/repos/opensciencegrid/htcondor-ce/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/opensciencegrid/htcondor-ce/issues/36/comments","events_url":"https://api.github.com/repos/opensciencegrid/htcondor-ce/issues/36/events","html_url":"https://github.com/opensciencegrid/htcondor-ce/pull/36","id":99674874,"number":36,"title":"Add default_remote_cerequirements","user":{"login":"djw8605","id":79268,"avatar_url":"https://avatars.githubusercontent.com/u/79268?v=3","gravatar_id":"","url":"https://api.github.com/users/djw8605","html_url":"https://github.com/djw8605","followers_url":"https://api.github.com/users/djw8605/followers","following_url":"https://api.github.com/users/djw8605/following{/other_user}","gists_url":"https://api.github.com/users/djw8605/gists{/gist_id}","starred_url":"https://api.github.com/users/djw8605/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djw8605/subscriptions","organizations_url":"https://api.github.com/users/djw8605/orgs","repos_url":"https://api.github.com/users/djw8605/repos","events_url":"https://api.github.com/users/djw8605/events{/privacy}","received_events_url":"https://api.github.com/users/djw8605/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-07T15:46:08Z","updated_at":"2015-08-07T15:46:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/opensciencegrid/htcondor-ce/pulls/36","html_url":"https://github.com/opensciencegrid/htcondor-ce/pull/36","diff_url":"https://github.com/opensciencegrid/htcondor-ce/pull/36.diff","patch_url":"https://github.com/opensciencegrid/htcondor-ce/pull/36.patch"},"body":"Add default_remote_cerequirements.  This enables the administrator to\r\nspecify routes with the attribute default_remote_cerequirements, which\r\nwill then be appended to the remote_cerequirements.  Therefore, to add\r\na new type of resource (such as a gpu), the admin needs to:\r\n\r\n1. Add to the default_remote_cerequirements in the router entry so\r\nthat the local submit file (.sh) can pick up the new requirement.  For\r\na GPU, it would be:\r\n\r\n```\r\nset_default_remote_cerequirements = \"RequestGpus == 1\"; \\\r\n```\r\n\r\n2. Add to the [pbs|lsf|sge|…]_local_submit_attributes.sh an if\r\nstatement to capture and use this attribute.  Again, for a GPU and\r\nSlurm:\r\n\r\n```\r\nif [ -n \"$RequestGpus\" ]; then\r\n    echo \"#SBATCH --gres=gpu:$RequestGpus\"\r\n    echo \"module load cuda/6.0\"\r\nfi\r\n```"},"comment":{"url":"https://api.github.com/repos/opensciencegrid/htcondor-ce/issues/comments/128741918","html_url":"https://github.com/opensciencegrid/htcondor-ce/pull/36#issuecomment-128741918","issue_url":"https://api.github.com/repos/opensciencegrid/htcondor-ce/issues/36","id":128741918,"user":{"login":"djw8605","id":79268,"avatar_url":"https://avatars.githubusercontent.com/u/79268?v=3","gravatar_id":"","url":"https://api.github.com/users/djw8605","html_url":"https://github.com/djw8605","followers_url":"https://api.github.com/users/djw8605/followers","following_url":"https://api.github.com/users/djw8605/following{/other_user}","gists_url":"https://api.github.com/users/djw8605/gists{/gist_id}","starred_url":"https://api.github.com/users/djw8605/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djw8605/subscriptions","organizations_url":"https://api.github.com/users/djw8605/orgs","repos_url":"https://api.github.com/users/djw8605/repos","events_url":"https://api.github.com/users/djw8605/events{/privacy}","received_events_url":"https://api.github.com/users/djw8605/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T15:46:33Z","updated_at":"2015-08-07T15:46:33Z","body":"@brianhlin, could you take a look at this pull request."}}