Got error for code below:
@vectorize(["float32(float32, float32, float32, float32)"], target='cuda')
def fuzz_comp(A_row, B_col, X, Y):
for i in range(A_row):
for j in range(B_col):
pvc_sim.input['ipv'] = float(X[i,j])
pvc_sim.compute()
Y[i,j] = pvc_sim.output['opv']
return Y
Error:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Untyped global name 'pvc_sim': cannot determine Numba type of <class 'skfuzzy.control.controlsystem.ControlSystemSimulation'>
File "<ipython-input-13-4fe6c3f24f69>", line 5:
def fuzz_comp(A_row, B_col, X, Y):
<source elided>
for j in range(B_col):
pvc_sim.input['ipv'] = float(X[i,j])
^
Read through a number of articles, however, unable to fix the problem. The code is working in Python, however; error returned when decorator is used. I am trying to implement fuzzy computation in GPU.