Add support for Clang-CUDA 11.x and a post-merge CI build
authorAndrey Alekseenko <al42and@gmail.com>
Tue, 16 Feb 2021 14:16:02 +0000 (14:16 +0000)
committerPaul Bauer <paul.bauer.q@gmail.com>
Tue, 16 Feb 2021 14:16:02 +0000 (14:16 +0000)
commitebdf9991103f92cc0672255512156c571136f516
treeaff491d8c39e65f1cad14fdc4a366dc8ea25e242
parent60914e936983ee5e132188be3c77a5b4f5540064
Add support for Clang-CUDA 11.x and a post-merge CI build

Tested mostly with Clang-11 and CUDA-11.2

While Clang does not officially support CUDA after 10.1, it appears to
work fine with newer versions.

Caveat: Clang fails to properly detect CUDA versions past 10.2

This can be worked around by creating `/usr/local/cuda/version.txt`
file with the single line `CUDA Version X.Y.Z`.

Despite the workaround above, Clang:
- does not recognize sm_86.
- recognizes sm_80, but believes that the installed CUDA version
  is too old to support it.
admin/gitlab-ci/gromacs.matrix.gitlab-ci.yml
admin/gitlab-ci/gromacs.matrix/gromacs.clang-11-cuda-11.2.gitlab-ci.yml [new file with mode: 0644]
cmake/gmxManageClangCudaConfig.cmake
src/gromacs/ewald/pme_gpu_program_impl.cu