瀏覽代碼

Check for presence of xsltproc

Samuel Thibault 9 年之前
父節點
當前提交
ad7416810b
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      tools/starpu_smpirun.in

+ 7 - 1
tools/starpu_smpirun.in

@@ -2,7 +2,7 @@
 
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 # 
-# Copyright (C) 2014-2015  Université Bordeaux
+# Copyright (C) 2014-2016  Université Bordeaux
 # 
 # StarPU is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as published by
@@ -71,6 +71,12 @@ NODE_PLATFORM=$STARPU_PERF_MODEL_DIR/bus/${STARPU_HOSTNAME}.platform.xml
 
 [ -n "$NP" ] || NP=$(grep -v "^$" $MPI_HOSTFILE | wc -l)
 
+if ! type xsltproc
+then
+	echo xsltproc is needed for starpu simgrid mpi.
+	exit 1
+fi
+
 (
 	cat << \EOF
 <?xml version='1.0'?>