[v0.25] Updated cuda_helper to support latest GPUs

This commit is contained in:
Dr-Noob
2022-12-03 16:39:18 +00:00
parent 9837236c7e
commit 06dc50b6a5

View File

@@ -8,7 +8,7 @@
// compilation issues. // compilation issues.
// //
// URL: https://github.com/NVIDIA/cuda-samples // URL: https://github.com/NVIDIA/cuda-samples
// Commit: 2e41896 // Commit: 8199209
inline int _ConvertSMVer2Cores(int major, int minor) { inline int _ConvertSMVer2Cores(int major, int minor) {
// Defines for GPU Architecture types (using the SM version to determine // Defines for GPU Architecture types (using the SM version to determine
@@ -36,6 +36,9 @@ inline int _ConvertSMVer2Cores(int major, int minor) {
{0x80, 64}, {0x80, 64},
{0x86, 128}, {0x86, 128},
{0x87, 128}, {0x87, 128},
// I added this one because it was missing in original cuda-samples...
{0x89, 128},
{0x90, 128},
{-1, -1}}; {-1, -1}};
int index = 0; int index = 0;