I am trying to implement a CUDA function to run on GPU cores to get high computational power at the fog node ( Jetson Xavier NX) for time series data analysis and forecasting.
For time series data forecasting, ARIMA model is used and I was able to implement a function (from statsmodels.tsa.arima_model import ARIMA) which works fine on CPU and I got the predicted results too.
Now I am trying to optimize the same function to run on GPU using @cuda.jit. But, I got an error as below.
**TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Untyped global name ‘customer_df’: Cannot determine Numba type of <class ‘pandas.core.frame.DataFrame’>
File “”, line 16:
[customer_df : is a panda data frame that I defined to to get the csv data for processing]
I tried some simple matrix calculations in Python to run on GPU using numba. That worked fine. Issue is with the function for time series forecasting which used ARIMA model directly.
model = ARIMA(train, order=(5,1,0)) <--------calling ARIMA to get the predictions
model_fit = model.fit(disp=0)
I went through this resources too Supported Python features in CUDA Python — Numba 0.50.1 documentation. Does it mean that I cannot use methods from ‘statsmodels.tsa.arima_model’ or panda frames etc in a function decorated with ‘@cuda.jit’?
I am a newbie to CUDA and this issue is a blocker for me.
Appreciate if anyone can shed some light.
Thank you and regards