LoginSignup
1

More than 5 years have passed since last update.

CUDA > CUDA 7.5 Runtime > GPU使用の加算サンプルコード / CUDA実行solutionのベースとして

Last updated at Posted at 2016-09-09
動作環境
GeForce GTX 750 Ti
Windows 8.1 pro (64bit)
Visual Studio Community 2013 (以下、VS)
CUDA 7.5

CUDAのサンプルを試そうとしたところ、VSのTemplateにNVIDIAというフォルダを見つけた。
その中にはCUDA 7.5のCUDA 7.5 Runtimeというのがあるようだ。

qiita.png

GPUでの加算処理を使った例をビルド・実行できる。

結果
C:\CudaDev\160910_cudaRuntime\Debug>160910_cudaRuntime.exe
{1,2,3,4,5} + {10,20,30,40,50} = {11,22,33,44,55}

使用機能のマインドマップ

mindmupにて機能をマップしてみた。
https://atlas.mindmup.com/yasokada/cuda_runtime_160910/index.html

昨日からゴールドセイント(年会費払った)なので、マップの半年公開の制限はない。

CUDA実行solutionのベース

VSにてCUDAのソースを実行しようとしてよくわからなかった。

上記のCUDA 7.5 Runtimeをもとにプロジェクトを作成すると簡単にCUDAを実行きる。

CUDA実行solutionのベースとして使えると思う。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1