I tried to run the example based on Huggett (1996) in VFItoolkit-matlab-examples/OLG/Huggett1996_Example.m at master · vfitoolkit/VFItoolkit-matlab-examples · GitHub
using a computer without Nvidia GPU but I received the following error message:
ReturnFn =
function_handle with value:
@(aprime,a,z,sigma,r,ybarj,theta,b,bvec,T,delta,alpha,A,bc_equalsminusw)Huggett1996_ReturnFn(aprime,a,z,sigma,r,ybarj,theta,b,bvec,T,delta,alpha,A,bc_equalsminusw)
Test ValueFnIter
Error using zeros
Unable to find a supported GPU device.
Error in ExogShockSetup_FHorz (line 83)
z_gridvals_J=zeros(prod(n_z),length(n_z),'gpuArray');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in ValueFnIter_Case1_FHorz (line 251)
[z_gridvals_J, pi_z_J, vfoptions]=ExogShockSetup_FHorz(n_z,z_grid,pi_z,N_j,Parameters,vfoptions,3);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in Huggett1996_Example (line 151)
[V, Policy]=ValueFnIter_Case1_FHorz(0,n_a,n_z,N_j, 0, a_grid, z_grid, pi_z, ReturnFn, Params, DiscountFactorParamNames, [],vfoptions);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Related documentation
Maybe this example uses some advanced feature and is not supposed to work on CPU…