-
Notifications
You must be signed in to change notification settings - Fork 176
[LAPACK] Add Arm Performance Libraries backend #633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Rbiessy
merged 6 commits into
uxlfoundation:develop
from
SiPearl:ad/armpl_lapack_backend
Feb 26, 2025
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f13bdd9
[LAPACK] Add Arm Performance Libraries backend
adegomme 09a4ebd
add copyrights to some generated files
adegomme 040efef
remove spurious comment and typo
adegomme 6d6d8fe
remove spurious comments and #define, add default cases to switches
adegomme 681df23
clang-format
adegomme 87361b6
Lapacke: add layer of error handling, not perfect as some errors are …
adegomme File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,43 @@ | ||
| /******************************************************************************* | ||
| * Copyright 2025 SiPearl | ||
| * Copyright 2021 Intel Corporation | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions | ||
| * and limitations under the License. | ||
| * | ||
| * | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| *******************************************************************************/ | ||
|
|
||
| #pragma once | ||
|
|
||
| #include <complex> | ||
| #include <cstdint> | ||
|
|
||
| #include <sycl/sycl.hpp> | ||
|
|
||
| #include "oneapi/math/types.hpp" | ||
| #include "oneapi/math/lapack/types.hpp" | ||
| #include "oneapi/math/detail/backend_selector.hpp" | ||
| #include "oneapi/math/lapack/detail/armpl/onemath_lapack_armpl.hpp" | ||
|
|
||
| namespace oneapi { | ||
| namespace math { | ||
| namespace lapack { | ||
|
|
||
| #define LAPACK_BACKEND armpl | ||
| #include "oneapi/math/lapack/detail/armpl/lapack_ct.hxx" | ||
| #undef LAPACK_BACKEND | ||
|
|
||
| } //namespace lapack | ||
| } //namespace math | ||
| } //namespace oneapi |
2,588 changes: 2,588 additions & 0 deletions
2,588
include/oneapi/math/lapack/detail/armpl/lapack_ct.hxx
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
include/oneapi/math/lapack/detail/armpl/onemath_lapack_armpl.hpp
This file contains hidden or 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,23 @@ | ||
| // | ||
| // Generated based on include/oneapi/math/lapack.hpp | ||
| // | ||
|
|
||
| #pragma once | ||
|
|
||
| #include <sycl/sycl.hpp> | ||
|
|
||
| #include <complex> | ||
| #include <cstdint> | ||
|
|
||
| #include "oneapi/math/types.hpp" | ||
| namespace oneapi { | ||
| namespace math { | ||
| namespace lapack { | ||
| namespace armpl { | ||
|
|
||
| #include "onemath_lapack_armpl.hxx" | ||
|
|
||
| } // namespace armpl | ||
| } // namespace lapack | ||
| } // namespace math | ||
| } // namespace oneapi | ||
1,523 changes: 1,523 additions & 0 deletions
1,523
include/oneapi/math/lapack/detail/armpl/onemath_lapack_armpl.hxx
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,51 @@ | ||
| # | ||
adegomme marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # generated file | ||
| # | ||
|
|
||
| set(LIB_NAME onemath_lapack_armpl) | ||
| set(LIB_OBJ ${LIB_NAME}_obj) | ||
|
|
||
| # Add third-party library | ||
| find_package(ARMPL REQUIRED) | ||
|
|
||
| add_library(${LIB_NAME}) | ||
| add_library(${LIB_OBJ} OBJECT | ||
| armpl_wrappers.cpp | ||
| armpl_batch.cpp | ||
| $<$<BOOL:${BUILD_SHARED_LIBS}>: armpl_wrappers_table_dyn.cpp> | ||
|
|
||
| ) | ||
|
|
||
| target_include_directories(${LIB_OBJ} | ||
| PUBLIC ${ONEMATH_INCLUDE_DIRS} | ||
| PRIVATE ${PROJECT_SOURCE_DIR}/src/include | ||
| ${PROJECT_SOURCE_DIR}/src | ||
| ${ARMPL_INCLUDE} | ||
| ) | ||
|
|
||
| target_link_libraries(${LIB_OBJ} | ||
| PUBLIC ONEMATH::SYCL::SYCL ${ARMPL_LINK} | ||
| ) | ||
|
|
||
| target_compile_features(${LIB_OBJ} PUBLIC cxx_std_14) | ||
| set_target_properties(${LIB_OBJ} PROPERTIES | ||
| POSITION_INDEPENDENT_CODE ON | ||
| ) | ||
| target_link_libraries(${LIB_NAME} PRIVATE ${LIB_OBJ}) | ||
| target_include_directories(${LIB_NAME} PUBLIC ${ONEMATH_INCLUDE_DIRS}) | ||
|
|
||
| # Add major version to the library | ||
| set_target_properties(${LIB_NAME} PROPERTIES | ||
| SOVERSION ${PROJECT_VERSION_MAJOR} | ||
| ) | ||
|
|
||
| # Add dependencies rpath to the library | ||
| list(APPEND CMAKE_BUILD_RPATH $<TARGET_FILE_DIR:${LIB_NAME}>) | ||
|
|
||
| # Add the library to install package | ||
| install(TARGETS ${LIB_OBJ} EXPORT oneMathTargets) | ||
| install(TARGETS ${LIB_NAME} EXPORT oneMathTargets | ||
| RUNTIME DESTINATION bin | ||
| ARCHIVE DESTINATION lib | ||
| LIBRARY DESTINATION lib | ||
| ) | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.