Skip to content
New issue

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

Simplify code generation #89

Open
ntessore opened this issue Dec 10, 2014 · 2 comments
Open

Simplify code generation #89

ntessore opened this issue Dec 10, 2014 · 2 comments

Comments

@ntessore
Copy link
Contributor

The code generation routines can be simplified enormously by using a two-pass approach:

  • first pass: snprintf everything to NULL and sum the character counts
  • allocate buffer with exactly known size
  • second pass: snprintf everything to buffer
@ntessore
Copy link
Contributor Author

This was done for the set_params kernel generation in #199.

@ntessore
Copy link
Contributor Author

Places where this needs to be done:

  • compute_kernel
  • set_params_kernel
  • kernel_options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant