[Beowulf] NVIDIA GPUs, CUDA, MD5, and "hobbyists"
Many of your questions may have already been answered in earlier discussions or in the FAQ. The search results page will indicate current discussions as well as past list serves, articles, and papers.
John Hearns john.hearns at streamline-computing.comFri Jun 20 00:38:17 PDT 2008
- Previous message: [Beowulf] NVIDIA GPUs, CUDA, MD5, and "hobbyists"
- Next message: [Beowulf] NVIDIA GPUs, CUDA, MD5, and "hobbyists"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 2008-06-19 at 17:16 -0700, Kilian CAVALOTTI wrote:
> I don't even know how you choose (or even if you can choose) on which
> GPU you want your code to be executed. It has to be handled by the
> driver on the host machine somehow.
There are functions for discovering the properties of the GPU units on
the system, and for selecting the device.
You call the function cudaSetDevice, from the manual:
cudaSetDevice() is used to select the device associated to the host
thread
and:
cudaGetDeviceCount() and cudaGetDeviceProperties() provide a way to
enumerate these devices and retrieve their properties:
int deviceCount;
cudaGetDeviceCount(&deviceCount);
int device;
for (device = 0; device < deviceCount; ++device) {
cudaDeviceProp deviceProp;
cudaGetDeviceProperties(&deviceProp, device);
- Previous message: [Beowulf] NVIDIA GPUs, CUDA, MD5, and "hobbyists"
- Next message: [Beowulf] NVIDIA GPUs, CUDA, MD5, and "hobbyists"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Beowulf mailing list
