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

Make array.zeros work for custom types

parent ca9875d6
Loading
Loading
Loading
Pipeline #1394 failed with stage
in 29 minutes and 5 seconds
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