starpu_exec.bat 1.3 KB

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