Compiling CUDA in command line

For getting acquainted to more unix based CUDA development, the following command line and related environment are found to works in the current Visual Studio based platform.

cd /d "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v6.5\1_Utilities\deviceQuery"

set path=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;%path%

nvcc -arch=sm_21 -I..\..\common\inc deviceQuery.cpp -o deviceQuery

cudawin3

The command line environment on Microsoft Visual Studio platform that have CUDA properly setup (like the one for approximating the value of pi here) relied on native commands like msbuild as below.

msbuild BlackScholes_vs2010.sln /t:rebuild

cudawin
cudawin2cudawin4

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s