CMakePresets.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {
  2. "version": 3,
  3. "configurePresets": [
  4. {
  5. "name": "Default",
  6. "binaryDir": "${sourceDir}/build",
  7. "cacheVariables": {
  8. "CMAKE_BUILD_TYPE": "Release"
  9. }
  10. },
  11. {
  12. "name": "CPU",
  13. "inherits": [ "Default" ]
  14. },
  15. {
  16. "name": "CUDA",
  17. "inherits": [ "Default" ]
  18. },
  19. {
  20. "name": "CUDA 11",
  21. "inherits": [ "CUDA" ],
  22. "cacheVariables": {
  23. "CMAKE_CUDA_ARCHITECTURES": "50;52;53;60;61;62;70;72;75;80;86"
  24. }
  25. },
  26. {
  27. "name": "CUDA 12",
  28. "inherits": [ "CUDA" ],
  29. "cacheVariables": {
  30. "CMAKE_CUDA_ARCHITECTURES": "60;61;62;70;72;75;80;86;87;89;90;90a"
  31. }
  32. },
  33. {
  34. "name": "JetPack 5",
  35. "inherits": [ "CUDA" ],
  36. "cacheVariables": {
  37. "CMAKE_CUDA_ARCHITECTURES": "72;87"
  38. }
  39. },
  40. {
  41. "name": "JetPack 6",
  42. "inherits": [ "CUDA" ],
  43. "cacheVariables": {
  44. "CMAKE_CUDA_ARCHITECTURES": "87"
  45. }
  46. },
  47. {
  48. "name": "ROCm",
  49. "inherits": [ "Default" ],
  50. "cacheVariables": {
  51. "CMAKE_HIP_PLATFORM": "amd"
  52. }
  53. },
  54. {
  55. "name": "ROCm 6",
  56. "inherits": [ "ROCm" ],
  57. "cacheVariables": {
  58. "AMDGPU_TARGETS": "gfx900;gfx940;gfx941;gfx942;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102"
  59. }
  60. }
  61. ],
  62. "buildPresets": [
  63. {
  64. "name": "Default",
  65. "configurePreset": "Default",
  66. "configuration": "Release"
  67. },
  68. {
  69. "name": "CPU",
  70. "configurePreset": "Default",
  71. "targets": [ "ggml-cpu" ]
  72. },
  73. {
  74. "name": "CUDA",
  75. "configurePreset": "CUDA",
  76. "targets": [ "ggml-cuda" ]
  77. },
  78. {
  79. "name": "CUDA 11",
  80. "inherits": [ "CUDA" ],
  81. "configurePreset": "CUDA 11"
  82. },
  83. {
  84. "name": "CUDA 12",
  85. "inherits": [ "CUDA" ],
  86. "configurePreset": "CUDA 12"
  87. },
  88. {
  89. "name": "JetPack 5",
  90. "inherits": [ "CUDA" ],
  91. "configurePreset": "JetPack 5"
  92. },
  93. {
  94. "name": "JetPack 6",
  95. "inherits": [ "CUDA" ],
  96. "configurePreset": "JetPack 6"
  97. },
  98. {
  99. "name": "ROCm",
  100. "configurePreset": "ROCm",
  101. "targets": [ "ggml-hip" ]
  102. },
  103. {
  104. "name": "ROCm 6",
  105. "inherits": [ "ROCm" ],
  106. "configurePreset": "ROCm 6"
  107. }
  108. ]
  109. }