Compilation is falling back to object mode WITHOUT looplifting enabled because Function "exampleGPU" failed type inference due to: Untyped global name 'Slope0723': cannot determine Numba type of <class 'type'>
File "SlopeWithGPU.py", line 647:
def exampleGPU(dxC, dxK):
<source elided>
SurfaceSlope = [[0, 0], [20, 0], [120, 100], [140, 100]]
return Slope0723().slopeCalculate(35, 2.5, 0.05, SurfaceSlope, 'red', dxC, dxK)
^
@vectorize(['float32(float32, float32)'], target='parallel')
C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\numba\compiler.py:742: NumbaWarning: Function "exampleGPU" was compiled in object mode without forceobj=True.
File "SlopeWithGPU.py", line 645:
@vectorize(['float32(float32, float32)'], target='parallel')
def exampleGPU(dxC, dxK):
^
self.func_ir.loc))
C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\numba\compiler.py:751: NumbaDeprecationWarning:
Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.
For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit
File "SlopeWithGPU.py", line 645:
@vectorize(['float32(float32, float32)'], target='parallel')
def exampleGPU(dxC, dxK):
^
warnings.warn(errors.NumbaDeprecationWarning(msg, self.func_ir.loc))
Traceback (most recent call last):
File "C:/Users/User/Desktop/geomechanica/SlopeWithGPU.py", line 644, in <module>
@vectorize(['float32(float32, float32)'], target='parallel')
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\numba\npyufunc\decorators.py", line 123, in wrap
return vec.build_ufunc()
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\numba\npyufunc\ufuncbuilder.py", line 236, in build_ufunc
dtypenums, ptr, env = self.build(cres, sig)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\numba\npyufunc\parallel.py", line 181, in build
dtypenums.append(np.dtype(signature.return_type.name).num)
TypeError: data type "pyobject" not understood