CMakePresets.json 2.0 KB

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