You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the code fragment below, the instance won't be None in line 764 because the function dev.create_kernel_instance(_) returns either InvalidConfig or KernelInstance.
When I make a problem in the thread block settings, the return value in line 763 is an instance of InvalidConfig, which has no attribute name, bypasses the if statement, and will cause error AttributeError: 'InvalidConfig' object has no attribute 'name' in line 768. This error message is not that clear for me to figure out what the real problem is.
Thanks @LiuLiujie for reporting! Indeed the check for None has become obsolete when InvalidConfig's were introduced. This should be fixed. Is this something you need urgently or is it only that the error message that could be improved?
In the code fragment below, the
instance
won't be None in line 764 because the functiondev.create_kernel_instance(_)
returns eitherInvalidConfig
orKernelInstance
.When I make a problem in the thread block settings, the return value in line 763 is an instance of
InvalidConfig
, which has no attributename
, bypasses the if statement, and will cause errorAttributeError: 'InvalidConfig' object has no attribute 'name'
in line 768. This error message is not that clear for me to figure out what the real problem is.kernel_tuner/kernel_tuner/interface.py
Lines 763 to 768 in 5d8e636
The text was updated successfully, but these errors were encountered: