src-d / kmcuda

Large scale K-means and K-nn implementation on NVIDIA GPU / CUDA
Other
784 stars 144 forks source link

Compile error #39

Closed PatWalters closed 6 years ago

PatWalters commented 6 years ago

This package looks great, but I can't build it. I'm getting this error when building on Ubuntu 14.04.5 with cuda 8. Any help would be greatly appreciated. Thanks.

kmcuda/src/kmcuda.cc:206:0: error: ignoring #pragma omp simd [-Werror=unknown-pragmas]

pragma omp simd

^ kmcuda/src/kmcuda.cc:310:0: error: ignoring #pragma omp simd [-Werror=unknown-pragmas]

pragma omp simd reduction(+:dist_sum2)

^ cc1plus: all warnings being treated as errors

vmarkovtsev commented 6 years ago

Hi! What's your gcc version?

PatWalters commented 6 years ago

gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4

vmarkovtsev commented 6 years ago

Right, 4.8 is too old. However, you can safely comment out those pragmas, it will still work correctly.

PatWalters commented 6 years ago

Thanks, I'll upgrade my gcc and give it a try

vmarkovtsev commented 6 years ago

Assuming as fixed, please reopen if there is still an issue.