-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
326a427
commit 179b75b
Showing
2 changed files
with
66 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import json | ||
|
||
matrix = { | ||
"include": [] | ||
} | ||
|
||
python_versions = ["3.8", "3.11"] | ||
build_type = ["Release", "Debug"] | ||
static_linking = ["On", "Off"] | ||
combinations = { | ||
"ubuntu-22.04": { | ||
"compiler": ["llvm", "gcc"], | ||
"arch_flags": ["-march=native", "-march=x86-64"] | ||
}, | ||
"windows-2022": { | ||
"compiler": ["msvc", "llvm"], | ||
"arch_flags": ["/arch:AVX2", "/arch:SSE2"] | ||
}, | ||
"macos-13": { | ||
"compiler": ["llvm", "gcc-14"], | ||
"arch_flags": ["-march=native", "-march=x86-64"] | ||
} | ||
} | ||
|
||
for platform in combinations.keys(): | ||
for python_version in python_versions: | ||
for compiler in combinations[platform]["compiler"]: | ||
for arch_flag in combinations[platform]["arch_flags"]: | ||
for linking in static_linking: | ||
for build in build_type: | ||
matrix["include"].append({ | ||
"os": platform, | ||
"python-version": python_version, | ||
"compiler": compiler, | ||
"arch_flags": arch_flag, | ||
"finufft_static_linking": linking, | ||
"build_type": build | ||
}) | ||
json_str = json.dumps(matrix, ensure_ascii=False) | ||
print(json_str) |