We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import loopy as lp import numpy as np child_knl = lp.make_function( [], """ g[0] = 2*e[0] + 3*f[0] g[1] = 2*e[1] + 3*f[1] """, name="linear_combo") parent_knl = lp.make_kernel( ["{[j]:0<=j<n}", "{[i]:0<=i<n}"], """ [i]: z[i, j] = linear_combo([i]: x[i, j], [i]: y[i,j]) """, kernel_data=[ lp.GlobalArg( name="x, y, z", dtype=np.float64, shape=("n", "n")), ...], assumptions="n>=1", ) knl = lp.merge([parent_knl, child_knl]) knl = lp.inline_callable_kernel(knl, "linear_combo") print(lp.generate_code_v2(knl).device_code())
Above program fails with TypeInferenceFailure: name not known in type inference: _lpy_arg
TypeInferenceFailure: name not known in type inference: _lpy_arg
The text was updated successfully, but these errors were encountered:
cc @kaushikcfd
Sorry, something went wrong.
#648 is possibly related.
Successfully merging a pull request may close this issue.
Above program fails with
TypeInferenceFailure: name not known in type inference: _lpy_arg
The text was updated successfully, but these errors were encountered: