Created
June 20, 2011 21:04
-
-
Save tralamazza/1036579 to your computer and use it in GitHub Desktop.
nvidia opencl cl.exe command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
if "%1" == "" goto error | |
if not "%opencl_dir%" == "" goto build | |
echo ############# Setting env vars ############# | |
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" | |
set opencl_dir=C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\OpenCL\common | |
:build | |
echo ############# Building ############# | |
cl /I"%opencl_dir%\inc" %* /link OpenCL.lib /LIBPATH:"%opencl_dir%\lib\x64" | |
goto done | |
:error | |
echo Missing input files | |
:done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment