CMakePresets.json 2.3 KB

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