瀏覽代碼

tools: first test starpu installation directory is valid

Nathalie Furmento 11 年之前
父節點
當前提交
b86b786e54
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 3 1
      tools/msvc/starpu_exec.bat
  2. 3 1
      tools/msvc/starpu_open.bat

+ 3 - 1
tools/msvc/starpu_exec.bat

@@ -18,12 +18,14 @@ REM See the GNU Lesser General Public License in COPYING.LGPL for more details.
 TITLE MSVC StarPU Execution
 ECHO.
 ECHO MSVC StarPU Execution
+
+IF NOT EXIST %STARPUPATH%\AUTHORS GOTO starpunotfound
+
 ECHO.
 ECHO Using StarPU in %STARPUPATH%
 
 IF "%1" == "" GOTO invalidparam
 IF NOT EXIST %1 GOTO invalidparam
-IF NOT EXIST %STARPUPATH%\AUTHORS GOTO starpunotfound
 
 mkdir starpu
 FOR %%F IN (%STARPUPATH%\bin\*dll) DO COPY %%F starpu\%%~nF

+ 3 - 1
tools/msvc/starpu_open.bat

@@ -18,12 +18,14 @@ REM See the GNU Lesser General Public License in COPYING.LGPL for more details.
 TITLE MSVC StarPU Execution
 ECHO.
 ECHO MSVC StarPU Execution
+
+IF NOT EXIST %STARPUPATH%\AUTHORS GOTO starpunotfound
+
 ECHO.
 ECHO %STARPUPATH%
 
 IF "%1" == "" GOTO invalidparam
 IF NOT EXIST %1 GOTO invalidparam
-IF NOT EXIST %STARPUPATH%\AUTHORS GOTO starpunotfound
 
 COPY %1 starpu\starpu_appli.c
 FOR %%F IN (%STARPUPATH%\bin\*dll) DO COPY %%F starpu\%%~nF