Skip to content

Commit

Permalink
v0.2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
neka-nat committed Jul 11, 2022
1 parent aa74a50 commit 7254547
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/cupoch/utility/platform.cu
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ int GetDevice() {

void SetDevice(int device_no) { cudaSetDevice(device_no); }

void GetDeviceProp(cudaDeviceProp& prop, int device_no) {
int cp_device_no = device_no;
if (cp_device_no < 0) cp_device_no = GetDevice();
cudaSafeCall(cudaGetDeviceProperties(&prop, cp_device_no));
}

void Error(const char *error_string,
const char *file,
const int line,
Expand Down
2 changes: 2 additions & 0 deletions src/cupoch/utility/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ int GetDevice();

void SetDevice(int device_no);

void GetDeviceProp(cudaDeviceProp& prop, int device_no = -1);

void Error(const char *error_string,
const char *file,
const int line,
Expand Down
2 changes: 1 addition & 1 deletion src/cupoch/version.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CUPOCH_VERSION_MAJOR 0
CUPOCH_VERSION_MINOR 2
CUPOCH_VERSION_PATCH 5
CUPOCH_VERSION_PATCH 6
CUPOCH_VERSION_TWEAK 0
2 changes: 1 addition & 1 deletion src/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cupoch"
version = "0.2.5.0"
version = "0.2.6.0"
description = ""
authors = ["nekanat <nekanat.stock@gmail.com>"]
license = "MIT"
Expand Down

0 comments on commit 7254547

Please sign in to comment.