inducer / loopy

A code generator for array-based code on CPUs and GPUs
http://mathema.tician.de/software/loopy
MIT License
580 stars 70 forks source link

Add UnrollHintTag for #pragma unroll and opencl_unroll_hint #783

Closed isuruf closed 1 year ago

isuruf commented 1 year ago

Fixes https://github.com/inducer/loopy/issues/782

For C:

#pragma unroll

and for OpenCL

__attribute__((opencl_unroll_hint))
isuruf commented 1 year ago

This is ready for a review

inducer commented 1 year ago

Thanks!