miniMD icon indicating copy to clipboard operation
miniMD copied to clipboard

pragma unroll syntax

Open jeffhammond opened this issue 8 years ago • 0 comments

Intel and IBM compilers want parentheses around the unrolling factor, while OpenCL and NVIDIA do not. It's pretty easy to handle this along the lines of https://github.com/jeffhammond/nwchem-tce-triples-kernels/blob/master/src/pragma_vendor.h. If you want a pull request, I'll try to work on it.

neighbor.cpp(361): warning #125: expected a "("
            #pragma unroll 8
neighbor.cpp(278): warning #125: expected a "("
      #pragma unroll 4

References

jeffhammond avatar Jun 11 '17 20:06 jeffhammond