-
Notifications
You must be signed in to change notification settings - Fork 26
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
Showing
107 changed files
with
5,817 additions
and
1,348 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,9 @@ | |
# Python cache | ||
__pycache__ | ||
|
||
# Python folders | ||
*.egg-info | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
6.5.0 | ||
6.6.0 |
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,47 @@ | ||
# | ||
# Copyright 2020 Adobe. All rights reserved. | ||
# This file is licensed to you 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 REPRESENTATIONS | ||
# OF ANY KIND, either express or implied. See the License for the specific language | ||
# governing permissions and limitations under the License. | ||
# | ||
function(lagrange_has_onetbb) | ||
if(NOT TARGET TBB::tbb) | ||
message(FATAL_ERROR "CMake target TBB::tbb must be defined.") | ||
endif() | ||
|
||
# This is a very ad-hoc system. Ideally we would use check_cxx_source_compiles() to check the | ||
# major version macro TBB_INTERFACE_VERSION_MAJOR, but this is a very limited CMake function | ||
# that does not understand CMake targets not generator expression, making it difficult to test | ||
# it against the real target TBB::tbb. | ||
get_target_property(TBB_SOURCES TBB::tbb SOURCES) | ||
if("arena_slot.cpp" IN_LIST TBB_SOURCES) | ||
message(STATUS "Lagrange detected OneTBB 2021 or higher") | ||
set(LAGRANGE_HAS_ONETBB ON CACHE INTERNAL "TBB version used in Lagrange" FORCE) | ||
else() | ||
message(STATUS "Lagrange detected TBB 2020 or lower") | ||
set(LAGRANGE_HAS_ONETBB OFF CACHE INTERNAL "TBB version used in Lagrange" FORCE) | ||
endif() | ||
|
||
# The code below should be preferred to check the TBB version from the provided target. We keep | ||
# it commented for reference, but CMake limitations prevent this from being fully functional. | ||
# | ||
# include(CMakePushCheckState) | ||
# include(CheckCXXSourceCompiles) | ||
# cmake_push_check_state(RESET) | ||
# check_cxx_source_compiles( [[ | ||
# #include <tbb/task.h> | ||
# #if TBB_INTERFACE_VERSION_MAJOR >= 12 | ||
# #message("OneTBB 2021 or higher") | ||
# #else | ||
# #error("TBB 2020 or lower") | ||
# #endif | ||
# ]] | ||
# LAGRANGE_HAS_ONETBB | ||
# ) | ||
# cmake_pop_check_state() | ||
endfunction() |
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,15 @@ | ||
if(TARGET BLAS::BLAS) | ||
return() | ||
endif() | ||
|
||
message(STATUS "Third-party (external): creating target 'BLAS::BLAS'") | ||
|
||
if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm64" OR "${CMAKE_OSX_ARCHITECTURES}" MATCHES "arm64") | ||
# Use Accelerate on macOS M1 | ||
set(BLA_VENDOR Apple) | ||
find_package(BLAS REQUIRED) | ||
else() | ||
# Use MKL on other platforms | ||
include(mkl) | ||
add_library(BLAS::BLAS ALIAS mkl::mkl) | ||
endif() |
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,15 @@ | ||
if(TARGET LAPACK::LAPACK) | ||
return() | ||
endif() | ||
|
||
message(STATUS "Third-party (external): creating target 'LAPACK::LAPACK'") | ||
|
||
if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm64" OR "${CMAKE_OSX_ARCHITECTURES}" MATCHES "arm64") | ||
# Use Accelerate on macOS M1 | ||
set(BLA_VENDOR Apple) | ||
find_package(LAPACK REQUIRED) | ||
else() | ||
# Use MKL on other platforms | ||
include(mkl) | ||
add_library(LAPACK::LAPACK ALIAS mkl::mkl) | ||
endif() |
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,26 @@ | ||
# | ||
# Copyright 2022 Adobe. All rights reserved. | ||
# This file is licensed to you 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 REPRESENTATIONS | ||
# OF ANY KIND, either express or implied. See the License for the specific language | ||
# governing permissions and limitations under the License. | ||
# | ||
if(TARGET mikktspace::mikktspace) | ||
return() | ||
endif() | ||
|
||
include(FetchContent) | ||
FetchContent_Declare( | ||
mikktspace | ||
GIT_REPOSITORY https://github.com/mmikk/MikkTSpace.git | ||
GIT_TAG 3e895b49d05ea07e4c2133156cfa94369e19e409 | ||
) | ||
FetchContent_MakeAvailable(mikktspace) | ||
|
||
add_library(mikktspace ${mikktspace_SOURCE_DIR}/mikktspace.c) | ||
add_library(mikktspace::mikktspace ALIAS mikktspace) | ||
target_include_directories(mikktspace PUBLIC ${mikktspace_SOURCE_DIR}) |
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
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
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
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
Oops, something went wrong.