echuraev opened a new pull request, #13434:
URL: https://github.com/apache/tvm/pull/13434

   As it was mentioned in #13362, it would be nice to add check when the user 
is using a version of libOpenCL.so that is too old.
   
   In this PR we introduce this functionality. In the `init` method, we 
traverse through all OpenCL devices and check their version. If the version is 
older than the target version in TVM, then we notify the user that we will skip 
this device. We cannot throw any exception from method `init` because it is 
possible that you have compiled host code with OpenCL support, but the host 
device won't have any OpenCL device which is supported by TVM (e.g. they all 
have too old version of libOpenCL.so). From OpenCL codegen we call function 
OpenCLModuleCreate. In the OpenCLModuleCreate init function might be called and 
in this case an exception will be generated on the host side although that the 
target device might be supported by TVM. This is why we don't throw any 
exceptions in the init function.
   
   If in the runtime we use some OpenCL methods and the list of the devices is 
empty, then we will generate an exception and notify user that possible reason 
is because version of libOpenCL.so is too old.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to