Skip to content

pragma unroll syntax #2

@jeffhammond

Description

@jeffhammond

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions