Browse Source

Do not abort simgrid execution when run with platform which does not have gpu memsize

Samuel Thibault 11 years ago
parent
commit
b0a7d24c71
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/core/simgrid.c

+ 3 - 0
src/core/simgrid.c

@@ -69,6 +69,9 @@ unsigned long long _starpu_simgrid_get_memsize(const char *prefix, unsigned devi
 	if (!host)
 		return 0;
 
+	if (!MSG_host_get_properties())
+		return 0;
+
 	memsize = MSG_host_get_property_value(host, "memsize");
 	if (!memsize)
 		return 0;