Skip to content
Snippets Groups Projects
Commit b330721d authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Make array.zeros work for custom types

parent ca9875d6
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
  • Author Owner

    @mattwala How many computer scientists does it take to zero-initialize a buffer? Hrmph. Turns out the argument to clEnqueueFillBuffer has to be power-of-two sized, so it doesn't exactly solve the general case. But this should do for the moment.

    The other depressing fact I realized is that even fixing the code generated for fill isn't sufficient--that then runs into the LLVM issue with struct passing.

  • Developer

    Thanks for getting this working.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment