ie-CUDATeam / 2013ie-CUDA

1 stars 0 forks source link

Add sample code #6

Closed himajin315 closed 10 years ago

himajin315 commented 10 years ago

New file matrix/matrix_gpu.cu

$ nnvcc matrix_cpu.cu
$ ./a.out
Processing time: 13 (sec)

New file matrix/matrix_cpu.cu Need option -lcutil_x86_64

$ nvcc matrix_gpu.cu -lcutil_x86_64
$ ./a.out
Processing time: 105.556999 (msec)

Press ENTER to exit...

13 (sec) -> 105.556999 (msec) This is 1000 times!!!