Explorar o código

backport r12323 12327 from trunk: Do not abort simgrid execution when run with platform which does not have gpu memsize

Samuel Thibault %!s(int64=12) %!d(string=hai) anos
pai
achega
1a0fbf2621
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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(host))
+		return 0;
+
 	memsize = MSG_host_get_property_value(host, "memsize");
 	if (!memsize)
 		return 0;