Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change flush array init #32

Open
wants to merge 1 commit into
base: oomph_tensor
Choose a base branch
from
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