Skip to content

Commit 8299720

Browse files
authored
fix: add alias for IntelLLVM compiler (#88)
This adds the correct `archspec` name for `CMake` `IntelLLVM`.
1 parent 765fb84 commit 8299720

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bindings/python/include/svs/python/manager.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ reconstruct(Index& index, py_contiguous_array_t<uint64_t> ids) {
119119
auto destination = py_contiguous_array_t<float>({num_ids, data_dims});
120120
index.reconstruct_at(
121121
mutable_data_view(destination),
122-
std::span<const uint64_t>(ids.template mutable_unchecked().mutable_data(), num_ids)
122+
std::span<const uint64_t>(
123+
ids.template mutable_unchecked<-1>().mutable_data(), num_ids
124+
)
123125
);
124126

125127
// Reshape the destination to have the same shape as the original IDs (plus the extra

bindings/python/microarch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ def resolve_compiler(name: str):
8585
aliases = {
8686
"GNU": "gcc",
8787
"Clang": "clang",
88+
"IntelLLVM": "oneapi",
8889
}
8990
return aliases.get(name, name)
9091

0 commit comments

Comments
 (0)