summaryrefslogtreecommitdiffstats
path: root/cuda/2d/util.cu
diff options
context:
space:
mode:
Diffstat (limited to 'cuda/2d/util.cu')
-rw-r--r--cuda/2d/util.cu25
1 files changed, 0 insertions, 25 deletions
diff --git a/cuda/2d/util.cu b/cuda/2d/util.cu
index 9c1bb28..871e139 100644
--- a/cuda/2d/util.cu
+++ b/cuda/2d/util.cu
@@ -274,29 +274,4 @@ void reportCudaError(cudaError_t err)
}
-_AstraExport std::string getCudaDeviceString(int device)
-{
- char buf[1024];
- cudaError_t err;
- if (device == -1) {
- err = cudaGetDevice(&device);
- if (err != cudaSuccess) {
- return "Error getting current GPU index";
- }
- }
-
- cudaDeviceProp prop;
- err = cudaGetDeviceProperties(&prop, device);
- if (err != cudaSuccess) {
- snprintf(buf, 1024, "GPU #%d: Invalid device (%d): %s", device, err, cudaGetErrorString(err));
- return buf;
- }
-
- long mem = prop.totalGlobalMem / (1024*1024);
- snprintf(buf, 1024, "GPU #%d: %s, with %ldMB", device, prop.name, mem);
- return buf;
-}
-
-
-
}