Skip to content
Open
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
3 changes: 2 additions & 1 deletion cartex/src/runtime/runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ runtime::exchange(int j, thread_pool::barrier& b)
#ifdef CARTEX_EVICT_CACHE
if(m_rank==0) std::cout << "cache flush size " << CARTEX_EVICT_CACHE_SIZE << "\n";
auto cache_ptr = new double[CARTEX_EVICT_CACHE_SIZE/sizeof(double)];
memset(cache_ptr, 1, sizeof(double)*(CARTEX_EVICT_CACHE_SIZE/sizeof(double)));
for (long unsigned int i=0; i<(CARTEX_EVICT_CACHE_SIZE/sizeof(double)); ++i)
cache_ptr[i] = i;
#endif

// check for correctness
Expand Down