Ver código fonte

msvc: new batch file to set up starpu environment

Nathalie Furmento 11 anos atrás
pai
commit
e0f689410d
3 arquivos alterados com 44 adições e 0 exclusões
  1. 1 0
      configure.ac
  2. 2 0
      tools/Makefile.am
  3. 41 0
      tools/msvc/starpu_var.bat.in

+ 1 - 0
configure.ac

@@ -2389,6 +2389,7 @@ AC_OUTPUT([
 	doc/doxygen/Makefile
 	doc/doxygen/doxygen-config.cfg
 	doc/doxygen/doxygen_filter.sh
+	tools/msvc/starpu_var.bat
 ])
 
 AC_MSG_NOTICE([

+ 2 - 0
tools/Makefile.am

@@ -32,6 +32,7 @@ EXTRA_DIST =				\
 	msvc/starpu_clean.bat		\
 	msvc/starpu_open.bat		\
 	msvc/starpu_exec.bat		\
+	msvc/starpu_var.bat		\
 	msvc/starpu.sln			\
 	msvc/starpu/starpu.vcxproj
 
@@ -129,6 +130,7 @@ nobase_STARPU_MSVC__DATA =		\
 	msvc/starpu_clean.bat		\
 	msvc/starpu_open.bat		\
 	msvc/starpu_exec.bat		\
+	msvc/starpu_var.bat		\
 	msvc/starpu.sln			\
 	msvc/starpu/starpu.vcxproj
 endif

+ 41 - 0
tools/msvc/starpu_var.bat.in

@@ -0,0 +1,41 @@
+@ECHO OFF
+
+REM StarPU --- Runtime system for heterogeneous multicore architectures.
+REM
+REM Copyright (C) 2013  Centre National de la Recherche Scientifique
+REM
+REM StarPU is free software; you can redistribute it and/or modify
+REM it under the terms of the GNU Lesser General Public License as published by
+REM the Free Software Foundation; either version 2.1 of the License, or (at
+REM your option) any later version.
+REM
+REM StarPU is distributed in the hope that it will be useful, but
+REM WITHOUT ANY WARRANTY; without even the implied warranty of
+REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+REM
+REM See the GNU Lesser General Public License in COPYING.LGPL for more details.
+
+TITLE MSVC StarPU Environment
+ECHO.
+ECHO MSVC StarPU Environment
+
+set STARPU_PATH=@prefix@
+
+IF NOT EXIST %STARPUPATH%\AUTHORS GOTO starpunotfound
+
+ECHO.
+ECHO Setting environment from %STARPUPATH%
+
+set STARPU_LIBDIR=%STARPU_PATH%/lib
+set STARPU_INCLUDEDIR=%PREFIX%/include
+set STARPU_CFLAGS=/I%STARPU_INCLUDEDIR%\starpu\@STARPU_EFFECTIVE_VERSION@ @STARPU_CUDA_CPPFLAGS@
+
+GOTO end
+
+:starpunotfound
+  ECHO.
+  ECHO You need to set the variable STARPUPATH to a valid StarPU installation directory
+  exit /B 1
+  GOTO end
+
+:end