From nobody Thu Nov 4 18:25:43 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 74BF617DFFDE; Thu, 4 Nov 2021 18:25:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HlXBb2RTqz3J8j; Thu, 4 Nov 2021 18:25:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 326DAEC2; Thu, 4 Nov 2021 18:25:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1A4IPh3o091111; Thu, 4 Nov 2021 18:25:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1A4IPhmh091110; Thu, 4 Nov 2021 18:25:43 GMT (envelope-from git) Date: Thu, 4 Nov 2021 18:25:43 GMT Message-Id: <202111041825.1A4IPhmh091110@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 6fa3abe29462 - main - net/mpich: Fix bug with uninitialized variables List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6fa3abe29462e2009e38629be7e46464d32d2e26 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=6fa3abe29462e2009e38629be7e46464d32d2e26 commit 6fa3abe29462e2009e38629be7e46464d32d2e26 Author: Yuri Victorovich AuthorDate: 2021-11-04 18:21:55 +0000 Commit: Yuri Victorovich CommitDate: 2021-11-04 18:25:39 +0000 net/mpich: Fix bug with uninitialized variables Patch suggested in https://github.com/nwchemgit/nwchem/issues/463#issuecomment-960359049 is added. science/nwchem now works with mpich. --- net/mpich/Makefile | 2 +- net/mpich/files/patch-l0-1.4.1 | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/net/mpich/Makefile b/net/mpich/Makefile index 9ceea2f9f6d4..bb7fa8918ee2 100644 --- a/net/mpich/Makefile +++ b/net/mpich/Makefile @@ -1,6 +1,6 @@ PORTNAME= mpich PORTVERSION= 3.4.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net parallel MASTER_SITES= https://www.mpich.org/static/downloads/${DISTVERSION}/ diff --git a/net/mpich/files/patch-l0-1.4.1 b/net/mpich/files/patch-l0-1.4.1 index 6042bc127616..6f70e435377f 100644 --- a/net/mpich/files/patch-l0-1.4.1 +++ b/net/mpich/files/patch-l0-1.4.1 @@ -1,4 +1,5 @@ https://github.com/pmodels/mpich/pull/5623 ++ additional fix from https://github.com/nwchemgit/nwchem/issues/463#issuecomment-960359049 src/gpu/mpl_gpu_ze.c:163:71: error: use of undeclared identifier 'ZE_IPC_MEMORY_FLAG_TBD' zeMemOpenIpcHandle(global_ze_context, dev_handle, ipc_handle, ZE_IPC_MEMORY_FLAG_TBD, ptr); @@ -26,6 +27,15 @@ src/gpu/mpl_gpu_ze.c:163:71: error: use of undeclared identifier 'ZE_IPC_MEMORY_ if (ret != ZE_RESULT_SUCCESS) { mpl_err = MPL_ERR_GPU_INTERNAL; goto fn_fail; +@@ -191,6 +191,8 @@ int MPL_gpu_query_pointer_attr(const void *ptr, MPL_po + ze_device_handle_t device; + memset(&ptr_attr, 0, sizeof(ze_memory_allocation_properties_t)); + ret = zeMemGetAllocProperties(global_ze_context, ptr, &ptr_attr, &device); ++ attr->type = 0; ++ attr->device = 0; + ZE_ERR_CHECK(ret); + attr->device = device; + switch (ptr_attr.type) { --- src/pm/hydra2/mpl/src/gpu/mpl_gpu_ze.c.orig 2021-05-25 17:37:05 UTC +++ src/pm/hydra2/mpl/src/gpu/mpl_gpu_ze.c @@ -160,7 +160,7 @@ int MPL_gpu_ipc_handle_map(MPL_gpu_ipc_mem_handle_t ip