Skip to content

Commit 4da56c6

Browse files
authored
Merge branch 'main' into oshmem_ctx_fix
2 parents 6917230 + 6bcb837 commit 4da56c6

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

opal/class/opal_interval_tree.c

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* Copyright (c) 2015-2018 Los Alamos National Security, LLC. All rights
1414
* reserved.
1515
* Copyright (c) 2020 Google, LLC. All rights reserved.
16+
* Copyright (c) 2025 NVIDIA Corporation. All rights reserved.
1617
* $COPYRIGHT$
1718
*
1819
* Additional copyrights may follow
@@ -85,6 +86,7 @@ static void opal_interval_tree_construct(opal_interval_tree_t *tree)
8586
tree->tree_size = 0;
8687
tree->lock = 0;
8788
tree->reader_count = 0;
89+
tree->reader_id = 0;
8890
tree->epoch = 0;
8991

9092
/* set all reader epochs to UINT_MAX. this value is used to simplify

opal/mca/rcache/base/rcache_base_vma.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Copyright (c) 2009 IBM Corporation. All rights reserved.
1616
* Copyright (c) 2015-2018 Los Alamos National Security, LLC. All rights
1717
* reserved.
18+
* Copyright (c) 2025 NVIDIA Corporation. All rights reserved.
1819
*
1920
* $COPYRIGHT$
2021
*
@@ -43,9 +44,6 @@ struct mca_rcache_base_registration_t;
4344
struct mca_rcache_base_vma_module_t {
4445
opal_object_t super;
4546
opal_interval_tree_t tree;
46-
opal_list_t vma_list;
47-
opal_lifo_t vma_gc_lifo;
48-
size_t reg_cur_cache_size;
4947
opal_mutex_t vma_lock;
5048
};
5149
typedef struct mca_rcache_base_vma_module_t mca_rcache_base_vma_module_t;

opal/mca/rcache/base/rcache_base_vma_tree.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Copyright (c) 2006 Voltaire. All rights reserved.
1515
* Copyright (c) 2007 Mellanox Technologies. All rights reserved.
1616
* Copyright (c) 2009 IBM Corporation. All rights reserved.
17-
* Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
17+
* Copyright (c) 2013-2025 NVIDIA Corporation. All rights reserved.
1818
* Copyright (c) 2013-2018 Cisco Systems, Inc. All rights reserved
1919
* Copyright (c) 2015-2018 Los Alamos National Security, LLC. All rights
2020
* reserved.
@@ -34,7 +34,6 @@
3434
int mca_rcache_base_vma_tree_init(mca_rcache_base_vma_module_t *vma_module)
3535
{
3636
OBJ_CONSTRUCT(&vma_module->tree, opal_interval_tree_t);
37-
vma_module->reg_cur_cache_size = 0;
3837
return opal_interval_tree_init(&vma_module->tree);
3938
}
4039

opal/mca/rcache/grdma/rcache_grdma_module.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Copyright (c) 2010 IBM Corporation. All rights reserved.
1717
* Copyright (c) 2011-2018 Los Alamos National Security, LLC. All rights
1818
* reserved.
19-
* Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
19+
* Copyright (c) 2013-2025 NVIDIA Corporation. All rights reserved.
2020
* Copyright (c) 2016 Research Organization for Information Science
2121
* and Technology (RIST). All rights reserved.
2222
* Copyright (c) 2020 Google, LLC. All rights reserved.
@@ -75,12 +75,10 @@ static inline bool registration_is_cacheable(mca_rcache_base_registration_t *reg
7575

7676
static void mca_rcache_grdma_cache_contructor(mca_rcache_grdma_cache_t *cache)
7777
{
78-
memset((void *) ((uintptr_t) cache + sizeof(cache->super)), 0,
79-
sizeof(*cache) - sizeof(cache->super));
80-
8178
OBJ_CONSTRUCT(&cache->lru_list, opal_list_t);
8279
OBJ_CONSTRUCT(&cache->gc_lifo, opal_lifo_t);
8380

81+
cache->cache_name = NULL;
8482
cache->vma_module = mca_rcache_base_vma_module_alloc();
8583
}
8684

0 commit comments

Comments
 (0)