Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions include/matx/core/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ namespace detail {

using CacheId = uint64_t;

#ifndef DOXYGEN_ONLY
__attribute__ ((visibility ("default")))
#endif
inline cuda::std::atomic<CacheId> CacheIdCounter{0};

template<typename CacheType>
__attribute__ ((visibility ("default")))
CacheId GetCacheIdFromType()
{
static CacheId id = CacheIdCounter.fetch_add(1);
Expand Down