OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GPU] Improve OOR exception (#32649)
John Feng466e9e092e03
diff --git a/src/plugins/intel_gpu/src/runtime/ocl/ocl_common.hpp b/src/plugins/intel_gpu/src/runtime/ocl/ocl_common.hppindex 620cccfa04a..3ee7b10d365 100644--- a/src/plugins/intel_gpu/src/runtime/ocl/ocl_common.hpp+++ b/src/plugins/intel_gpu/src/runtime/ocl/ocl_common.hpp@@ -48,10 +48,16 @@ inline void rethrow(std::string message, cl_int error, const device_info& info)<< "\tDue to a driver bug, any subsequent OpenCL API call may cause the application to hang, "<< "so the GPU plugin may be unable to finish correctly.\n"<< "\tThe CL_OUT_OF_RESOURCES error typically occurs in two cases:\n"- << "\t1. An actual lack of memory for the current inference.\n"+ << "\t1. Insufficient memory for the current inference.\n"<< "\t2. An out-of-bounds access to GPU memory from a kernel.\n"- << "\tFor case 1, you may try adjusting some model parameters (e.g., using a smaller batch size, lower inference precision, fewer streams, etc.)"- << " to reduce the required memory size. For case 2, please submit a bug report to the OpenVINO team.\n"+ << "\tFor case 1 (Insufficient Memory)"+ << "\t - Try adjusting some model parameters (e.g., using a smaller batch size, lower inference precision, fewer streams, etc.) to \n"+ << "\t reduce the required memory size.\n"+ << "\t - Alternatively, for Intel integrated Arc GPUs on Microsoft Windows 10 or 11 host systems with more than 10 GB of system memory, the \n"+ << "\t shared memory allocation can be increased via the Intel Graphics Software tool: 'Graphics > General > Shared GPU Memory Override', \n"+ << "\t as long as it is not already at its software-defined upper limit.\n"+ << "\tFor case 2 (Out-of-Bounds Access):\n"+ << "\t - Please submit a bug report to the OpenVINO team.\n"<< "\tAdditionally, please try updating the driver to the latest version.\n";OPENVINO_THROW(ss.str());} else {