File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed
Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,12 @@ int GetDevice() {
5151
5252void SetDevice (int device_no) { cudaSetDevice (device_no); }
5353
54+ void GetDeviceProp (cudaDeviceProp& prop, int device_no) {
55+ int cp_device_no = device_no;
56+ if (cp_device_no < 0 ) cp_device_no = GetDevice ();
57+ cudaSafeCall (cudaGetDeviceProperties (&prop, cp_device_no));
58+ }
59+
5460void Error (const char *error_string,
5561 const char *file,
5662 const int line,
Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ int GetDevice();
5353
5454void SetDevice (int device_no);
5555
56+ void GetDeviceProp (cudaDeviceProp& prop, int device_no = -1 );
57+
5658void Error (const char *error_string,
5759 const char *file,
5860 const int line,
Original file line number Diff line number Diff line change 11CUPOCH_VERSION_MAJOR 0
22CUPOCH_VERSION_MINOR 2
3- CUPOCH_VERSION_PATCH 5
3+ CUPOCH_VERSION_PATCH 6
44CUPOCH_VERSION_TWEAK 0
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " cupoch"
3- version = " 0.2.5 .0"
3+ version = " 0.2.6 .0"
44description = " "
55authors = [" nekanat <nekanat.stock@gmail.com>" ]
66license = " MIT"
You can’t perform that action at this time.
0 commit comments