|
| 1 | +{ |
| 2 | + "version": 6, |
| 3 | + "cmakeMinimumRequired": { |
| 4 | + "major": 3, |
| 5 | + "minor": 25, |
| 6 | + "patch": 0 |
| 7 | + }, |
| 8 | + "configurePresets": [ |
| 9 | + { |
| 10 | + "name": "default", |
| 11 | + "displayName": "openblas-cpu", |
| 12 | + "description": "OpenBLAS as the BLAS vendor with CPU-only support.", |
| 13 | + "binaryDir": "${sourceDir}/build/${presetName}", |
| 14 | + "cacheVariables": { |
| 15 | + "CMAKE_BUILD_TYPE": "Release", |
| 16 | + "CMAKE_INSTALL_PREFIX": "${sourceDir}/build/${presetName}/libcytnx", |
| 17 | + "CMAKE_EXPORT_COMPILE_COMMANDS": "OFF", |
| 18 | + "USE_MKL": "OFF", |
| 19 | + "BUILD_PYTHON": "ON", |
| 20 | + "BACKEND_TORCH": "OFF", |
| 21 | + "USE_HPTT": "ON", |
| 22 | + "HPTT_ENABLE_FINE_TUNE": "ON", |
| 23 | + "USE_CUDA": "OFF", |
| 24 | + "RUN_TESTS": "OFF", |
| 25 | + "RUN_BENCHMARKS": "OFF", |
| 26 | + "USE_DEBUG": "OFF", |
| 27 | + "BUILD_DOC": "OFF", |
| 28 | + "DEV_MODE": "OFF" |
| 29 | + } |
| 30 | + }, |
| 31 | + { |
| 32 | + "name": "mkl-cpu", |
| 33 | + "displayName": "mkl-cpu", |
| 34 | + "description": "Intel MKL as the BLAS vendor with CPU-only support.", |
| 35 | + "inherits": "default", |
| 36 | + "cacheVariables": { "USE_MKL": "ON" } |
| 37 | + }, |
| 38 | + { |
| 39 | + "name": "openblas-cuda", |
| 40 | + "displayName": "openblas-cuda", |
| 41 | + "description": "OpenBLAS as the BLAS vendor with CUDA support.", |
| 42 | + "inherits": "default", |
| 43 | + "cacheVariables": { |
| 44 | + "USE_CUDA": "ON", |
| 45 | + "USE_CUTT": "ON", |
| 46 | + "CUTT_ENABLE_FINE_TUNE": "ON", |
| 47 | + "USE_CUTENSOR": "ON", |
| 48 | + "USE_CUQUANTUM": "ON" |
| 49 | + } |
| 50 | + }, |
| 51 | + { |
| 52 | + "name": "mkl-cuda", |
| 53 | + "displayName": "mkl-cuda", |
| 54 | + "description": "Intel MKL as the BLAS vendor with CUDA support.", |
| 55 | + "inherits": ["default", "mkl-cpu"] |
| 56 | + }, |
| 57 | + { |
| 58 | + "name": "debug", |
| 59 | + "displayName": "debug-openblas-cpu", |
| 60 | + "description": "Debug build: OpenBLAS as the BLAS vendor with CPU-only support.", |
| 61 | + "inherits": "default", |
| 62 | + "cacheVariables": { |
| 63 | + "CMAKE_BUILD_TYPE": "Debug", |
| 64 | + "CMAKE_EXPORT_COMPILE_COMMANDS": "ON", |
| 65 | + "USE_DEBUG": "ON", |
| 66 | + "RUN_TESTS": "ON", |
| 67 | + "RUN_BENCHMARKS": "OFF", |
| 68 | + "BUILD_DOC": "ON", |
| 69 | + "DEV_MODE": "ON" |
| 70 | + } |
| 71 | + }, |
| 72 | + { |
| 73 | + "name": "debug-mkl-cpu", |
| 74 | + "displayName": "debug-mkl-cpu", |
| 75 | + "description": "Debug build: Intel MKL as the BLAS vendor with CPU-only support.", |
| 76 | + "inherits": ["debug", "mkl-cpu"] |
| 77 | + }, |
| 78 | + { |
| 79 | + "name": "debug-openblas-cuda", |
| 80 | + "displayName": "debug-openblas-cuda", |
| 81 | + "description": "Debug build: OpenBLAS as the BLAS vendor with CUDA support.", |
| 82 | + "inherits": ["debug", "openblas-cuda"] |
| 83 | + }, |
| 84 | + { |
| 85 | + "name": "debug-mkl-cuda", |
| 86 | + "displayName": "debug-mkl-cuda", |
| 87 | + "description": "Debug build: Intel MKL as the BLAS vendor with CUDA support.", |
| 88 | + "inherits": ["debug", "mkl-cuda"] |
| 89 | + } |
| 90 | + ], |
| 91 | + "buildPresets": [ |
| 92 | + { |
| 93 | + "name": "default", |
| 94 | + "displayName": "openblas-cpu", |
| 95 | + "description": "Build using OpenBLAS with CPU-only support.", |
| 96 | + "configurePreset": "default", |
| 97 | + "jobs": 8 |
| 98 | + }, |
| 99 | + { |
| 100 | + "name": "openblas-cuda", |
| 101 | + "description": "Build using OpenBLAS with CUDA support.", |
| 102 | + "configurePreset": "openblas-cuda", |
| 103 | + "inherits": "default" |
| 104 | + }, |
| 105 | + { |
| 106 | + "name": "mkl-cuda", |
| 107 | + "description": "Build using Intel MKL with CUDA support.", |
| 108 | + "configurePreset": "mkl-cuda", |
| 109 | + "inherits": "default" |
| 110 | + }, |
| 111 | + { |
| 112 | + "name": "debug-openblas-cpu", |
| 113 | + "description": "Debug build using OpenBLAS with CPU-only support.", |
| 114 | + "configurePreset": "debug", |
| 115 | + "inherits": "default" |
| 116 | + }, |
| 117 | + { |
| 118 | + "name": "debug-mkl-cpu", |
| 119 | + "description": "Debug build using Intel MKL with CPU-only support.", |
| 120 | + "configurePreset": "debug-mkl-cpu", |
| 121 | + "inherits": "default" |
| 122 | + }, |
| 123 | + { |
| 124 | + "name": "debug-openblas-cuda", |
| 125 | + "description": "Debug build using OpenBLAS with CUDA support.", |
| 126 | + "configurePreset": "debug-openblas-cuda", |
| 127 | + "inherits": "default" |
| 128 | + }, |
| 129 | + { |
| 130 | + "name": "debug-mkl-cuda", |
| 131 | + "description": "Debug build using Intel MKL with CUDA support.", |
| 132 | + "configurePreset": "debug-mkl-cuda", |
| 133 | + "inherits": "default" |
| 134 | + } |
| 135 | + ], |
| 136 | + "testPresets": [ |
| 137 | + { |
| 138 | + "name": "default", |
| 139 | + "displayName": "cpu-only", |
| 140 | + "description": "Run tests for CPU-only builds.", |
| 141 | + "configurePreset": "debug", |
| 142 | + "output": { |
| 143 | + "outputOnFailure": true, |
| 144 | + "verbosity": "verbose" |
| 145 | + }, |
| 146 | + "execution": { |
| 147 | + "jobs": 8 |
| 148 | + } |
| 149 | + }, |
| 150 | + { |
| 151 | + "name": "cpu-and-cuda", |
| 152 | + "description": "Run tests for builds with CUDA support.", |
| 153 | + "configurePreset": "debug-openblas-cuda", |
| 154 | + "inherits": "default" |
| 155 | + } |
| 156 | + ] |
| 157 | +} |
0 commit comments