Browse Source

tools: first test starpu installation directory is valid

Nathalie Furmento 11 years ago
parent
commit
b86b786e54
2 changed files with 6 additions and 2 deletions
  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