miniMD
miniMD copied to clipboard
pragma unroll syntax
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