starpu_open.bat 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @ECHO OFF
  2. REM StarPU --- Runtime system for heterogeneous multicore architectures.
  3. REM
  4. REM Copyright (C) 2013 Centre National de la Recherche Scientifique
  5. REM
  6. REM StarPU is free software; you can redistribute it and/or modify
  7. REM it under the terms of the GNU Lesser General Public License as published by
  8. REM the Free Software Foundation; either version 2.1 of the License, or (at
  9. REM your option) any later version.
  10. REM
  11. REM StarPU is distributed in the hope that it will be useful, but
  12. REM WITHOUT ANY WARRANTY; without even the implied warranty of
  13. REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. REM
  15. REM See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. TITLE MSVC StarPU Execution
  17. ECHO.
  18. ECHO MSVC StarPU Execution
  19. IF NOT EXIST %STARPUPATH%\AUTHORS GOTO starpunotfound
  20. ECHO.
  21. ECHO %STARPUPATH%
  22. IF "%1" == "" GOTO invalidparam
  23. IF NOT EXIST %1 GOTO invalidparam
  24. COPY %1 starpu\starpu_appli.c
  25. FOR %%F IN (%STARPUPATH%\bin\*dll) DO COPY %%F starpu\%%~nF
  26. FOR %%F IN (%STARPUPATH%\bin\*dll) DO COPY %%F starpu
  27. COPY c:\MinGW\bin\pthreadGC2.dll starpu
  28. IF EXIST Debug RMDIR /S /Q Debug
  29. IF EXIST starpu\Debug RMDIR /S /Q starpu\Debug
  30. "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\VCExpress.exe" starpu.sln
  31. GOTO end
  32. :invalidparam
  33. ECHO.
  34. ECHO Syntax error. You need to give the name of a StarPU application
  35. GOTO end
  36. :starpunotfound
  37. ECHO.
  38. ECHO You need to set the variable STARPUPATH to a valid StarPU installation directory
  39. GOTO end
  40. :end