Skip to content

Commit e63a159

Browse files
authored
Visibility fix for cache static deinit issue (#752)
Change visibility of cache variable
1 parent 2ef53ea commit e63a159

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/matx/core/cache.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,13 @@ namespace detail {
4646

4747
using CacheId = uint64_t;
4848

49+
#ifndef DOXYGEN_ONLY
50+
__attribute__ ((visibility ("default")))
51+
#endif
4952
inline cuda::std::atomic<CacheId> CacheIdCounter{0};
5053

5154
template<typename CacheType>
55+
__attribute__ ((visibility ("default")))
5256
CacheId GetCacheIdFromType()
5357
{
5458
static CacheId id = CacheIdCounter.fetch_add(1);

0 commit comments

Comments
 (0)