Paul D. Baines
To monitor GPU usage on Pearson and Lipshitz:
ssh username@pearson.ucdavis.edu nvidia-smi -l
ssh username@lipschitz.ucdavis.edu nvidia-smi -l
To see who else is logged on:
finger
Note:
RCUDA
should use lipschitz
PyCUDA
should use pearson
CUDA code is compiled by the NVIDIA compiler nvcc
, which functions
in much the same way as gcc
and g++
for those familiar with C and
C++. Linking and header files require care (just as they do with
vanilla C/C++).
My example, modified from some code on the NVIDIA forums:
See CUDA_example_01.cu
Compile with:
nvcc CUDA_example_01.cu # plain: makes a.out
nvcc CUDA_example_01.cu -use_fast_math -o CUDA_example_01.out
Run with:
./CUDA_example_01.out
Credit: CS264 (N. Pinto)
What tasks are they good for?
What tasks are they not good for?
RCUDA
provides full bindings to the NVIDIA CUDA API for R
users i.e., it provides
a mechanism to call any function within the CUDA API from within R. In addition to this,
it also provides higher level functionality that can hide some of the memory
management associated with CUDA.
ptx
code using nvcc --ptx
See demo code and examples...
Source. Wed: More GPUs.*