From be4b8969bae90fe97c7426e38b30c2d3bbb0bfac Mon Sep 17 00:00:00 2001 From: Laurent Clouet Date: Thu, 25 Jun 2015 00:42:46 +0100 Subject: [PATCH] Add help text in case of error --- src/com/sheepit/client/hardware/gpu/GPU.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/sheepit/client/hardware/gpu/GPU.java b/src/com/sheepit/client/hardware/gpu/GPU.java index b80a897..651ec40 100644 --- a/src/com/sheepit/client/hardware/gpu/GPU.java +++ b/src/com/sheepit/client/hardware/gpu/GPU.java @@ -57,6 +57,11 @@ public class GPU { result = cudalib.cuInit(0); if (result != CUresult.CUDA_SUCCESS) { System.out.println("GPU::generate cuInit failed (ret: " + result + ")"); + if (result == CUresult.CUDA_ERROR_UNKNOWN) { + System.out.println("If you are running Linux, this error is usually due to nvidia kernel module 'nvidia_uvm' not loaded."); + System.out.println("Relaunch the application as root or load the module."); + System.out.println("Most of time it does fix the issue."); + } return false; }