CUV  0.9.201304091348
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
device_tools.hpp
1 /*
2  * memory_tools.h
3  *
4  * Created on: 28.04.2010
5  * Author: gerharda
6  */
7 
8 #ifndef MEMORY_TOOLS_H_
9 #define MEMORY_TOOLS_H_
10 
11 #include <string>
12 #include <stdexcept>
13 #include <iostream>
14 #include <cstring>
15 #include <cuda.h>
16 #include <cuda_runtime.h>
17 #include <vector>
18 #include "cuv_general.hpp"
19 
20 #include "exception_helper.hpp"
21 
22 namespace cuv{
30  int getFreeDeviceMemory();
31 
39  int getMaxDeviceMemory();
40 
47  int countDevices();
54  int getCurrentDevice();
55 }
56 #endif /* MEMORY_TOOLS_H_ */