|
@@ -1138,7 +1138,11 @@ void _starpu_request_mem_chunk_removal(starpu_data_handle_t handle, struct _star
|
|
|
* STARPU_USE_ALLOCATION_CACHE is not enabled, as we
|
|
|
* wouldn't even re-use these allocations!
|
|
|
*/
|
|
|
- if (handle->ops->dontcache || (starpu_node_get_kind(node) == STARPU_CPU_RAM && limit_cpu_mem < 0))
|
|
|
+ if (handle->ops->dontcache || (starpu_node_get_kind(node) == STARPU_CPU_RAM
|
|
|
+#ifdef STARPU_USE_ALLOCATION_CACHE
|
|
|
+ && limit_cpu_mem < 0
|
|
|
+#endif
|
|
|
+ ))
|
|
|
{
|
|
|
/* Free data immediately */
|
|
|
free_memory_on_node(mc, node);
|