-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
102 lines (101 loc) · 3.23 KB
/
CMakePresets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"version": 5,
"cmakeMinimumRequired": {
"major": 3,
"minor": 24,
"patch": 0
},
"configurePresets": [
{
"name": "debug",
"displayName": "gfortran DEBUG",
"description": "debug options for building with GFortran",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_Fortran_COMPILER": "gfortran",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_Fortran_FLAGS": "-Wall -Wextra -Werror -std=f2018 -pedantic -fmax-errors=1 -fcheck=all -fbacktrace -lopenblas"
}
},
{
"name": "gfortran-openblas",
"displayName": "gfortran RELEASE (OpenBLAS)",
"description": "release options for building with gfortran + OpenBLAS",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_Fortran_COMPILER": "gfortran",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_Fortran_FLAGS": "-Ofast -march=native -lopenblas"
}
},
{
"name": "ifort-openblas",
"displayName": "ifort RELEASE (OpenBLAS)",
"description": "release options for building with ifort + OpenBLAS",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_Fortran_COMPILER": "ifort",
"CMAKE_C_COMPILER": "icc",
"CMAKE_CXX_COMPILER": "icpc",
"CMAKE_Fortran_FLAGS": "-Ofast -march=core-avx2 -lopenblas"
}
},
{
"name": "ifort-mkl",
"displayName": "ifort RELEASE (MKL)",
"description": "release options for building with ifort + MKL",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_Fortran_COMPILER": "ifort",
"CMAKE_C_COMPILER": "icc",
"CMAKE_CXX_COMPILER": "icpc",
"CMAKE_Fortran_FLAGS": "-Ofast -march=core-avx2 -qmkl"
}
},
{
"name": "ifx-openblas",
"displayName": "ifx RELEASE (OpenBLAS)",
"description": "release options for building with ifx + OpenBLAS",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_Fortran_COMPILER": "ifx",
"CMAKE_C_COMPILER": "icx",
"CMAKE_CXX_COMPILER": "icpx",
"CMAKE_Fortran_FLAGS": "-Ofast -march=core-avx2 -lopenblas"
}
},
{
"name": "ifx-mkl",
"displayName": "ifx RELEASE (MKL)",
"description": "release options for building with ifx + MKL",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_Fortran_COMPILER": "ifx",
"CMAKE_C_COMPILER": "icx",
"CMAKE_CXX_COMPILER": "icpx",
"CMAKE_Fortran_FLAGS": "-Ofast -march=core-avx2 -qmkl"
}
},
{
"name": "flang-openblas",
"displayName": "flang RELEASE (OpenBLAS)",
"description": "release options for building with flang + OpenBLAS",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_Fortran_COMPILER": "flang",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang",
"CMAKE_Fortran_FLAGS": "-Ofast -march=native -lopenblas"
}
}
]
}