00001 #include <cuda.h> 00002 #include <cuda_runtime.h> 00003 #include "CudaDevices.H" 00004 00005 int main(int argc, char **argv) 00006 { 00007 unsigned int free = 0, total = 0; 00008 int dev; 00009 if(argc < 2) 00010 dev = 0; 00011 else 00012 dev=atoi(argv[1]); 00013 CudaDevices::displayProperties(dev); 00014 00015 // looks like this function does not exist anymore? 00016 //cuMemGetInfo(&free, &total); 00017 printf("Sorry, cuMemGetInfo problem...\n"); 00018 00019 printf("^^^^ Device: %d free %u, total %u\n",dev,free,total); 00020 return 0; 00021 }