starpu_var.bat.in 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 Environment
  18. ECHO.
  19. ECHO MSVC StarPU Environment
  20. IF NOT EXIST %STARPU_PATH%\AUTHORS GOTO starpunotfound
  21. ECHO.
  22. ECHO Setting environment from %STARPU_PATH%
  23. set STARPU_LIBDIR=%STARPU_PATH%/lib
  24. set STARPU_INCLUDEDIR=%STARPU_PATH%/include
  25. set STARPU_CFLAGS=/I%STARPU_INCLUDEDIR%\starpu\@STARPU_EFFECTIVE_VERSION@ @STARPU_CUDA_CPPFLAGS@ /I%HWLOC%\include
  26. set STARPU_LDFLAGS=/link %STARPU_PATH%\lib\libstarpu-@STARPU_EFFECTIVE_VERSION@.lib
  27. GOTO end
  28. :starpunotfound
  29. ECHO.
  30. ECHO You need to set the variable STARPU_PATH to a valid StarPU installation directory
  31. exit /B 1
  32. GOTO end
  33. :end