Skip to content

Commit 4a80611

Browse files
authored
Merge pull request #25035 from julianmorillo/libfabric
add patch for RISC-V build issue to libfabric 2.0.0 easyconfig
2 parents c488911 + 815c19d commit 4a80611

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

easybuild/easyconfigs/l/libfabric/libfabric-2.0.0-GCCcore-14.2.0.eb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ toolchainopts = {'pic': True}
1717

1818
source_urls = ['https://github.com/ofiwg/libfabric/releases/download/v%(version)s']
1919
sources = [SOURCE_TAR_BZ2]
20+
patches = ['%(name)s-%(version)s_opx_hfi1_pre_cn5000.patch']
2021
checksums = [
2122
{'libfabric-2.0.0.tar.bz2': '1a8e40f1f331d6ee2e9ace518c0088a78c8a838968f8601c2b77fd012a7bf0f5'},
23+
{'%(name)s-%(version)s_opx_hfi1_pre_cn5000.patch':
24+
'9b97d7f84512ad7fe3bfc878f5fed80fcfa45ec904e9295246ebda99d85c3113'},
2225
]
2326

2427
builddependencies = [
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Based on https://github.com/ofiwg/libfabric/pull/10691 by Cryolitia
2+
prov/opx: use page_sizes[OFI_PAGE_SIZE]-1 instead of PAGE_MASK
3+
Generated for release version 20.0.0 by julianmorillo
4+
diff --git a/prov/opx/include/rdma/opx/opx_hfi1_pre_cn5000.h b/prov/opx/include/rdma/opx/opx_hfi1_pre_cn5000.h
5+
index 2b57bc161..0bced48f0 100644
6+
--- a/prov/opx/include/rdma/opx/opx_hfi1_pre_cn5000.h
7+
+++ b/prov/opx/include/rdma/opx/opx_hfi1_pre_cn5000.h
8+
@@ -38,6 +38,7 @@
9+
#include <sys/mman.h>
10+
11+
#include "fi_opx_hfi1.h"
12+
+#include "ofi_mem.h"
13+
14+
/* Implementation PRE-CN5000 */
15+
#ifdef OPX_PRE_CN5000
16+
@@ -116,7 +117,7 @@ int opx_get_port(struct hfi1_user_info_dep *uinfo)
17+
18+
#define OPX_HFI1_MMAP_MAGIC 0xdabbad00
19+
20+
-#define opx_offset_in_page(p) ((unsigned long)(p) & ~PAGE_MASK)
21+
+#define opx_offset_in_page(p) ((unsigned long)(p) & (page_sizes[OFI_PAGE_SIZE]-1))
22+
23+
#define OPX_HFI1_MMAP_TOKEN_SET(field, val) \
24+
(((val) & OPX_HFI1_MMAP_##field##_MASK) << OPX_HFI1_MMAP_##field##_SHIFT)

0 commit comments

Comments
 (0)