目次 >> CUDA >> 初めてのプログラム CUDA - 初めてのプログラム 何もしないプログラム まずは、CUDAの初期化、および終了のみをするプログラムを作ってみる。 cuda001.cuという空のテキストファイルを用意し、下記のような内容にする。 #include <stdio.h> #include <cutil.h> int main( int argc, char** argv) { CUT_DEVICE_INIT(argc, argv); unsigned int timer = 0; CUT_SAFE_CALL( cutCreateTimer( &timer)); CUT_SAFE_CALL( cutStartTimer( timer)); CUT_SAFE_CALL( cutStopTimer( timer)); printf( "Processing time: %