Skip to content

Commit 7254547

Browse files
committed
v0.2.6.0
1 parent aa74a50 commit 7254547

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

src/cupoch/utility/platform.cu

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ int GetDevice() {
5151

5252
void 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+
5460
void Error(const char *error_string,
5561
const char *file,
5662
const int line,

src/cupoch/utility/platform.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ int GetDevice();
5353

5454
void SetDevice(int device_no);
5555

56+
void GetDeviceProp(cudaDeviceProp& prop, int device_no = -1);
57+
5658
void Error(const char *error_string,
5759
const char *file,
5860
const int line,

src/cupoch/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
CUPOCH_VERSION_MAJOR 0
22
CUPOCH_VERSION_MINOR 2
3-
CUPOCH_VERSION_PATCH 5
3+
CUPOCH_VERSION_PATCH 6
44
CUPOCH_VERSION_TWEAK 0

src/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "cupoch"
3-
version = "0.2.5.0"
3+
version = "0.2.6.0"
44
description = ""
55
authors = ["nekanat <nekanat.stock@gmail.com>"]
66
license = "MIT"

0 commit comments

Comments
 (0)