1 Star 0 Fork 23

xie_wen_hao/mvapich2

forked from src-openEuler/mvapich2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fix-psm2-multiple-definition.patch 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
From 2a2bbf44e134a412df54f33c41d49b36f04c50e7 Mon Sep 17 00:00:00 2001
From: sunguoshuai <sunguoshuai@huawei.com>
Date: Sat, 7 Aug 2021 15:01:35 +0800
Subject: [PATCH] for psm2 multiple definition
---
src/mpid/ch3/channels/psm/include/psmpriv.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/mpid/ch3/channels/psm/include/psmpriv.h b/src/mpid/ch3/channels/psm/include/psmpriv.h
index ee6848b..958c5f9 100644
--- a/src/mpid/ch3/channels/psm/include/psmpriv.h
+++ b/src/mpid/ch3/channels/psm/include/psmpriv.h
@@ -212,10 +212,10 @@
(_len < ipath_rndv_thresh))
int psm_no_lock(pthread_spinlock_t *);
-int (*psm_lock_fn)(pthread_spinlock_t *);
-int (*psm_unlock_fn)(pthread_spinlock_t *);
-int (*psm_progress_lock_fn)(pthread_spinlock_t *);
-int (*psm_progress_unlock_fn)(pthread_spinlock_t *);
+extern int (*psm_lock_fn)(pthread_spinlock_t *);
+extern int (*psm_unlock_fn)(pthread_spinlock_t *);
+extern int (*psm_progress_lock_fn)(pthread_spinlock_t *);
+extern int (*psm_progress_unlock_fn)(pthread_spinlock_t *);
#define MAX_PROGRESS_HOOKS 4
typedef int (*progress_func_ptr_t) (int* made_progress);
@@ -225,7 +225,7 @@ typedef struct progress_hook_slot {
int active;
} progress_hook_slot_t;
-progress_hook_slot_t progress_hooks[MAX_PROGRESS_HOOKS];
+extern progress_hook_slot_t progress_hooks[MAX_PROGRESS_HOOKS];
#define _psm_enter_ psm_lock_fn(&psmlock)
#define _psm_exit_ psm_unlock_fn(&psmlock)
--
2.30.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xie-wen-hao/mvapich2.git
git@gitee.com:xie-wen-hao/mvapich2.git
xie-wen-hao
mvapich2
mvapich2
master

搜索帮助