瀏覽代碼

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

Samuel Thibault 11 年之前
父節點
當前提交
b0a7d24c71
共有 1 個文件被更改,包括 3 次插入0 次删除
  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;