Skip to content

Instantly share code, notes, and snippets.

@tralamazza
Created June 20, 2011 21:04
Show Gist options
  • Save tralamazza/1036579 to your computer and use it in GitHub Desktop.
Save tralamazza/1036579 to your computer and use it in GitHub Desktop.
nvidia opencl cl.exe command line
@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