From 7a27188860e8b000acd2b10a68372d137089cb02 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Mon, 24 Feb 2025 00:49:39 -0800 Subject: [PATCH 1/2] fix: add alias for IntelLLVM compiler --- bindings/python/microarch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/python/microarch.py b/bindings/python/microarch.py index 913e31c4..fab259e8 100644 --- a/bindings/python/microarch.py +++ b/bindings/python/microarch.py @@ -85,6 +85,7 @@ def resolve_compiler(name: str): aliases = { "GNU": "gcc", "Clang": "clang", + "IntelLLVM": "intel" } return aliases.get(name, name) From 6a5c10a6a5c1641df9086d8a49b44ffaa561576b Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Tue, 25 Feb 2025 02:34:42 -0800 Subject: [PATCH 2/2] fix archspec compiler name and template compiler warning --- bindings/python/include/svs/python/manager.h | 4 +++- bindings/python/microarch.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bindings/python/include/svs/python/manager.h b/bindings/python/include/svs/python/manager.h index b56101fa..3583c683 100644 --- a/bindings/python/include/svs/python/manager.h +++ b/bindings/python/include/svs/python/manager.h @@ -119,7 +119,9 @@ reconstruct(Index& index, py_contiguous_array_t ids) { auto destination = py_contiguous_array_t({num_ids, data_dims}); index.reconstruct_at( mutable_data_view(destination), - std::span(ids.template mutable_unchecked().mutable_data(), num_ids) + std::span( + ids.template mutable_unchecked<-1>().mutable_data(), num_ids + ) ); // Reshape the destination to have the same shape as the original IDs (plus the extra diff --git a/bindings/python/microarch.py b/bindings/python/microarch.py index fab259e8..99a4ae36 100644 --- a/bindings/python/microarch.py +++ b/bindings/python/microarch.py @@ -85,7 +85,7 @@ def resolve_compiler(name: str): aliases = { "GNU": "gcc", "Clang": "clang", - "IntelLLVM": "intel" + "IntelLLVM": "oneapi", } return aliases.get(name, name)