spirit-code / spirit

Atomistic Spin Simulation Framework
http://spirit-code.github.io
MIT License
117 stars 52 forks source link

CMake: enable setting CUDA arch #516

Closed GPMueller closed 5 years ago

GPMueller commented 5 years ago

See e.g. https://github.com/fireice-uk/xmr-stak-nvidia/blob/b1144a30950b876fbf1ec2d8457afe59a1a8b647/CMakeLists.txt#L66-L81

The CUDA arch setting should also be adequately documented as to when one should choose what and what it means (see also #499 and #515).

See e.g. https://en.wikipedia.org/wiki/CUDA and https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/ for some explanations.

GPMueller commented 5 years ago

Implemented with e98bac5c9ea3acf59fe2eb3a28af76ad325b1f93 on branch hotfix.

GPMueller commented 5 years ago

Merged with 5e23bf3be5aa4bacf5aae24514b0b22cbd395619 and aedc894470ae9e2c8ff73550d6bc6df26eb52a9a.