{"action":"closed","number":10,"pull_request":{"url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/pulls/10","id":183146699,"html_url":"https://github.com/NVIDIA/hpc-container-maker/pull/10","diff_url":"https://github.com/NVIDIA/hpc-container-maker/pull/10.diff","patch_url":"https://github.com/NVIDIA/hpc-container-maker/pull/10.patch","issue_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/issues/10","number":10,"state":"closed","locked":false,"title":"Fix issue with MVAPICH2 compiler wrappers when used in the build stage","user":{"login":"samcmill","id":18687225,"avatar_url":"https://avatars2.githubusercontent.com/u/18687225?v=4","gravatar_id":"","url":"https://api.github.com/users/samcmill","html_url":"https://github.com/samcmill","followers_url":"https://api.github.com/users/samcmill/followers","following_url":"https://api.github.com/users/samcmill/following{/other_user}","gists_url":"https://api.github.com/users/samcmill/gists{/gist_id}","starred_url":"https://api.github.com/users/samcmill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samcmill/subscriptions","organizations_url":"https://api.github.com/users/samcmill/orgs","repos_url":"https://api.github.com/users/samcmill/repos","events_url":"https://api.github.com/users/samcmill/events{/privacy}","received_events_url":"https://api.github.com/users/samcmill/received_events","type":"User","site_admin":false},"body":"The MVAPICH2 compiler wrappers, e.g., `mpicc`, do not work when called from the container build stage (there are no issues when used from a built container invoked with `nvidia-docker` or `singularity run --nv`).  The error is:\r\n\r\n```\r\nStep 16/16 : RUN cd /tmp &&     mpicc test.c\r\n ---> Running in 1ae33aa005a4\r\n/usr/bin/ld: warning: libnvidia-ml.so.1, needed by /usr/local/mvapich2/lib/libmpi.so, not found (try using -rpath or -rpath-link)\r\n/usr/local/mvapich2/lib/libmpi.so: undefined reference to `nvmlDeviceGetMaxPcieLinkGeneration'\r\n/usr/local/mvapich2/lib/libmpi.so: undefined reference to `nvmlDeviceGetName'\r\n/usr/local/mvapich2/lib/libmpi.so: undefined reference to `nvmlDeviceGetMaxPcieLinkWidth'\r\n/usr/local/mvapich2/lib/libmpi.so: undefined reference to `nvmlDeviceGetUUID'\r\n/usr/local/mvapich2/lib/libmpi.so: undefined reference to `nvmlDeviceGetPciInfo_v3'\r\n/usr/local/mvapich2/lib/libmpi.so: undefined reference to `nvmlDeviceGetSerial'\r\n/usr/local/mvapich2/lib/libmpi.so: undefined reference to `nvmlShutdown'\r\n/usr/local/mvapich2/lib/libmpi.so: undefined reference to `nvmlInit_v2'\r\n/usr/local/mvapich2/lib/libmpi.so: undefined reference to `nvmlDeviceGetHandleByIndex_v2'\r\n/usr/local/mvapich2/lib/libmpi.so: undefined reference to `nvmlDeviceGetCount_v2'\r\ncollect2: error: ld returned 1 exit status\r\nThe command '/bin/sh -c cd /tmp &&     mpicc test.c' returned a non-zero code: 1\r\n```\r\n\r\nThe issue is that `libmpi.so` depends on `libnvidia-ml.so.1`, but the latter is not mapped into the container build process.\r\n\r\nThis fix uses the stub version of `libnvidia-ml.so` that is part of the CUDA toolkit.  It hijacks the MPI compiler wrapper profiling hooks (`PROFILE_POSTLIB`) to transparently add `-L/usr/local/cuda/lib64/stubs -lnvidia-ml` to the compiler command line.  This allows the MPI compiler wrappers to work in the container build context, but still resolves to the proper driver library at runtime.","created_at":"2018-04-20T19:11:02Z","updated_at":"2018-05-11T18:35:21Z","closed_at":"2018-05-11T18:35:21Z","merged_at":"2018-05-11T18:35:21Z","merge_commit_sha":"0f294bd769828c12cbd723159d09dfc8392d40f3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/pulls/10/commits","review_comments_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/pulls/10/comments","review_comment_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/issues/10/comments","statuses_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/statuses/f7115dc7268279a016f09503f15bcda0e2e8bfce","head":{"label":"NVIDIA:mvapich2-fix","ref":"mvapich2-fix","sha":"f7115dc7268279a016f09503f15bcda0e2e8bfce","user":{"login":"NVIDIA","id":1728152,"avatar_url":"https://avatars2.githubusercontent.com/u/1728152?v=4","gravatar_id":"","url":"https://api.github.com/users/NVIDIA","html_url":"https://github.com/NVIDIA","followers_url":"https://api.github.com/users/NVIDIA/followers","following_url":"https://api.github.com/users/NVIDIA/following{/other_user}","gists_url":"https://api.github.com/users/NVIDIA/gists{/gist_id}","starred_url":"https://api.github.com/users/NVIDIA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NVIDIA/subscriptions","organizations_url":"https://api.github.com/users/NVIDIA/orgs","repos_url":"https://api.github.com/users/NVIDIA/repos","events_url":"https://api.github.com/users/NVIDIA/events{/privacy}","received_events_url":"https://api.github.com/users/NVIDIA/received_events","type":"Organization","site_admin":false},"repo":{"id":126385168,"name":"hpc-container-maker","full_name":"NVIDIA/hpc-container-maker","owner":{"login":"NVIDIA","id":1728152,"avatar_url":"https://avatars2.githubusercontent.com/u/1728152?v=4","gravatar_id":"","url":"https://api.github.com/users/NVIDIA","html_url":"https://github.com/NVIDIA","followers_url":"https://api.github.com/users/NVIDIA/followers","following_url":"https://api.github.com/users/NVIDIA/following{/other_user}","gists_url":"https://api.github.com/users/NVIDIA/gists{/gist_id}","starred_url":"https://api.github.com/users/NVIDIA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NVIDIA/subscriptions","organizations_url":"https://api.github.com/users/NVIDIA/orgs","repos_url":"https://api.github.com/users/NVIDIA/repos","events_url":"https://api.github.com/users/NVIDIA/events{/privacy}","received_events_url":"https://api.github.com/users/NVIDIA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NVIDIA/hpc-container-maker","description":"HPC Container Maker","fork":false,"url":"https://api.github.com/repos/NVIDIA/hpc-container-maker","forks_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/forks","keys_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/teams","hooks_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/hooks","issue_events_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/issues/events{/number}","events_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/events","assignees_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/assignees{/user}","branches_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/branches{/branch}","tags_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/tags","blobs_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/git/refs{/sha}","trees_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/statuses/{sha}","languages_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/languages","stargazers_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/stargazers","contributors_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/contributors","subscribers_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/subscribers","subscription_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/subscription","commits_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/commits{/sha}","git_commits_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/git/commits{/sha}","comments_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/comments{/number}","issue_comment_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/issues/comments{/number}","contents_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/contents/{+path}","compare_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/merges","archive_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/downloads","issues_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/issues{/number}","pulls_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/pulls{/number}","milestones_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/milestones{/number}","notifications_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/labels{/name}","releases_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/releases{/id}","deployments_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/deployments","created_at":"2018-03-22T19:26:41Z","updated_at":"2018-05-11T18:14:40Z","pushed_at":"2018-05-11T18:35:21Z","git_url":"git://github.com/NVIDIA/hpc-container-maker.git","ssh_url":"git@github.com:NVIDIA/hpc-container-maker.git","clone_url":"https://github.com/NVIDIA/hpc-container-maker.git","svn_url":"https://github.com/NVIDIA/hpc-container-maker","homepage":null,"size":111,"stargazers_count":23,"watchers_count":23,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":2,"open_issues":2,"watchers":23,"default_branch":"master"}},"base":{"label":"NVIDIA:master","ref":"master","sha":"402128e526709f56757296be6b7040e6c89c4286","user":{"login":"NVIDIA","id":1728152,"avatar_url":"https://avatars2.githubusercontent.com/u/1728152?v=4","gravatar_id":"","url":"https://api.github.com/users/NVIDIA","html_url":"https://github.com/NVIDIA","followers_url":"https://api.github.com/users/NVIDIA/followers","following_url":"https://api.github.com/users/NVIDIA/following{/other_user}","gists_url":"https://api.github.com/users/NVIDIA/gists{/gist_id}","starred_url":"https://api.github.com/users/NVIDIA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NVIDIA/subscriptions","organizations_url":"https://api.github.com/users/NVIDIA/orgs","repos_url":"https://api.github.com/users/NVIDIA/repos","events_url":"https://api.github.com/users/NVIDIA/events{/privacy}","received_events_url":"https://api.github.com/users/NVIDIA/received_events","type":"Organization","site_admin":false},"repo":{"id":126385168,"name":"hpc-container-maker","full_name":"NVIDIA/hpc-container-maker","owner":{"login":"NVIDIA","id":1728152,"avatar_url":"https://avatars2.githubusercontent.com/u/1728152?v=4","gravatar_id":"","url":"https://api.github.com/users/NVIDIA","html_url":"https://github.com/NVIDIA","followers_url":"https://api.github.com/users/NVIDIA/followers","following_url":"https://api.github.com/users/NVIDIA/following{/other_user}","gists_url":"https://api.github.com/users/NVIDIA/gists{/gist_id}","starred_url":"https://api.github.com/users/NVIDIA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NVIDIA/subscriptions","organizations_url":"https://api.github.com/users/NVIDIA/orgs","repos_url":"https://api.github.com/users/NVIDIA/repos","events_url":"https://api.github.com/users/NVIDIA/events{/privacy}","received_events_url":"https://api.github.com/users/NVIDIA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NVIDIA/hpc-container-maker","description":"HPC Container Maker","fork":false,"url":"https://api.github.com/repos/NVIDIA/hpc-container-maker","forks_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/forks","keys_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/teams","hooks_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/hooks","issue_events_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/issues/events{/number}","events_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/events","assignees_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/assignees{/user}","branches_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/branches{/branch}","tags_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/tags","blobs_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/git/refs{/sha}","trees_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/statuses/{sha}","languages_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/languages","stargazers_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/stargazers","contributors_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/contributors","subscribers_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/subscribers","subscription_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/subscription","commits_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/commits{/sha}","git_commits_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/git/commits{/sha}","comments_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/comments{/number}","issue_comment_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/issues/comments{/number}","contents_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/contents/{+path}","compare_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/merges","archive_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/downloads","issues_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/issues{/number}","pulls_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/pulls{/number}","milestones_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/milestones{/number}","notifications_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/labels{/name}","releases_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/releases{/id}","deployments_url":"https://api.github.com/repos/NVIDIA/hpc-container-maker/deployments","created_at":"2018-03-22T19:26:41Z","updated_at":"2018-05-11T18:14:40Z","pushed_at":"2018-05-11T18:35:21Z","git_url":"git://github.com/NVIDIA/hpc-container-maker.git","ssh_url":"git@github.com:NVIDIA/hpc-container-maker.git","clone_url":"https://github.com/NVIDIA/hpc-container-maker.git","svn_url":"https://github.com/NVIDIA/hpc-container-maker","homepage":null,"size":111,"stargazers_count":23,"watchers_count":23,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":2,"open_issues":2,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NVIDIA/hpc-container-maker/pulls/10"},"html":{"href":"https://github.com/NVIDIA/hpc-container-maker/pull/10"},"issue":{"href":"https://api.github.com/repos/NVIDIA/hpc-container-maker/issues/10"},"comments":{"href":"https://api.github.com/repos/NVIDIA/hpc-container-maker/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/NVIDIA/hpc-container-maker/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/NVIDIA/hpc-container-maker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NVIDIA/hpc-container-maker/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/NVIDIA/hpc-container-maker/statuses/f7115dc7268279a016f09503f15bcda0e2e8bfce"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"samcmill","id":18687225,"avatar_url":"https://avatars2.githubusercontent.com/u/18687225?v=4","gravatar_id":"","url":"https://api.github.com/users/samcmill","html_url":"https://github.com/samcmill","followers_url":"https://api.github.com/users/samcmill/followers","following_url":"https://api.github.com/users/samcmill/following{/other_user}","gists_url":"https://api.github.com/users/samcmill/gists{/gist_id}","starred_url":"https://api.github.com/users/samcmill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samcmill/subscriptions","organizations_url":"https://api.github.com/users/samcmill/orgs","repos_url":"https://api.github.com/users/samcmill/repos","events_url":"https://api.github.com/users/samcmill/events{/privacy}","received_events_url":"https://api.github.com/users/samcmill/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":14,"additions":2830,"deletions":598,"changed_files":63}}
{"actor":{"display_login":"samcmill"}}