git: 6fa3abe29462 - main - net/mpich: Fix bug with uninitialized variables
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 04 Nov 2021 18:25:43 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=6fa3abe29462e2009e38629be7e46464d32d2e26 commit 6fa3abe29462e2009e38629be7e46464d32d2e26 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2021-11-04 18:21:55 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> 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