Improve OpenCL log/error reporting
[alexxy/gromacs.git] / src / gromacs / gpu_utils / ocl_compiler.cpp
index d2dc183566d1b91c55ff5e8d5d07d0c613d5f018..1f670e8b910e26d6d4624ded3bf8b451ed76b9c8 100644 (file)
@@ -450,11 +450,15 @@ cl_program compileProgram(FILE*              fplog,
                 // Failing to read from the cache is not a critical error
                 formatExceptionMessageToFile(fplog, e);
             }
+            fprintf(fplog, "OpenCL binary cache file %s is present, will load kernels.\n",
+                    cacheFilename.c_str());
         }
         else
         {
             fprintf(fplog,
-                    "No OpenCL binary cache file was present, so will compile kernels normally.\n");
+                    "No OpenCL binary cache file was present for %s, so will compile kernels "
+                    "normally.\n",
+                    kernelBaseFilename.c_str());
         }
     }
     if (program == nullptr)