starpu_exec.bat 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @ECHO OFF
  2. REM StarPU --- Runtime system for heterogeneous multicore architectures.
  3. REM
  4. REM Copyright (C) 2013-2020 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 "%1" == "" GOTO invalidparam
  21. IF NOT EXIST %1 GOTO invalidparam
  22. call .\starpu_var.bat
  23. mkdir starpu
  24. FOR %%F IN (%STARPU_PATH%\bin\*dll) DO COPY %%F starpu\%%~nF
  25. FOR %%F IN (%HWLOC%\bin\*dll) DO COPY %%F starpu
  26. set STARPU_OLDPATH=%PATH%
  27. call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86
  28. cl %1 %STARPU_CFLAGS% %STARPU_LDFLAGS%
  29. set PATH=starpu;c:\MinGW\bin;%PATH%
  30. .\%~n1.exe
  31. set PATH=%STARPU_OLDPATH%
  32. GOTO end
  33. :invalidparam
  34. ECHO.
  35. ECHO Syntax error. You need to give the name of a StarPU application
  36. EXIT /B 2
  37. GOTO end
  38. :end