|
@@ -62,9 +62,13 @@ int main(int argc, char **argv)
|
|
ret = starpu_malloc((void **)&buffer3, 1*1024*512);
|
|
ret = starpu_malloc((void **)&buffer3, 1*1024*512);
|
|
STARPU_CHECK_RETURN_VALUE_IS(ret, -ENOMEM, "starpu_malloc");
|
|
STARPU_CHECK_RETURN_VALUE_IS(ret, -ENOMEM, "starpu_malloc");
|
|
|
|
|
|
-#ifdef STARPU_DEVEL
|
|
|
|
-#warning we need to test the reclaim is working by calling starpu_free(buffer2) and re-trying to allocate buffer3
|
|
|
|
-#endif
|
|
|
|
|
|
+ starpu_free(buffer2);
|
|
|
|
+
|
|
|
|
+ ret = starpu_malloc((void **)&buffer3, 1*1024*512);
|
|
|
|
+ STARPU_CHECK_RETURN_VALUE(ret, "starpu_malloc");
|
|
|
|
+
|
|
|
|
+ starpu_free(buffer3);
|
|
|
|
+ starpu_free(buffer);
|
|
|
|
|
|
starpu_shutdown();
|
|
starpu_shutdown();
|
|
return 0;
|
|
return 0;
|