starpu_open.bat 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. @ECHO OFF
  2. REM StarPU --- Runtime system for heterogeneous multicore architectures.
  3. REM
  4. REM Copyright (C) 2013-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  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. REM
  17. TITLE MSVC StarPU Execution
  18. ECHO.
  19. ECHO MSVC StarPU Execution
  20. IF NOT EXIST %STARPU_PATH%\AUTHORS GOTO starpunotfound
  21. ECHO.
  22. ECHO %STARPU_PATH%
  23. IF "%1" == "" GOTO invalidparam
  24. IF NOT EXIST %1 GOTO invalidparam
  25. COPY %1 starpu\starpu_appli.c
  26. FOR %%F IN (%STARPU_PATH%\bin\*dll) DO COPY %%F starpu\%%~nF
  27. FOR %%F IN (%STARPU_PATH%\bin\*dll) DO COPY %%F starpu
  28. COPY c:\MinGW\bin\pthreadGC2.dll starpu
  29. IF EXIST Debug RMDIR /S /Q Debug
  30. IF EXIST starpu\Debug RMDIR /S /Q starpu\Debug
  31. "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\VCExpress.exe" starpu.sln
  32. GOTO end
  33. :invalidparam
  34. ECHO.
  35. ECHO Syntax error. You need to give the name of a StarPU application
  36. GOTO end
  37. :starpunotfound
  38. ECHO.
  39. ECHO You need to set the variable STARPU_PATH to a valid StarPU installation directory
  40. GOTO end
  41. :end