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
>>> print(clgen.preprocess(""" constant const float c = 3.5f; #define DTYPE float #define ALPHA(a) c * a inline DTYPE ax(DTYPE x) { return ALPHA(x); } kernel void saxpy( /* SAXPY kernel */ global DTYPE *input1, global DTYPE *input2, const int nelem) { unsigned int idx = get_global_id(0); // = ax + y if (idx < nelem) { input2[idx] += ax(input1[idx]); }} """))
Expected output:
constant const float Ga = 3.5f; inline float A(float a) { return Ga * a; } kernel void B(global float* a, global float* b, const int c) { unsigned int d = get_global_id(0); if (d < c) { b[d] += A(a[d]); } }
Actual output:
The text was updated successfully, but these errors were encountered:
ChrisCummins
No branches or pull requests
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: