diff options
author | Chunseok Lee <chunseok.lee@samsung.com> | 2021-04-20 18:01:41 +0900 |
---|---|---|
committer | Chunseok Lee <chunseok.lee@samsung.com> | 2021-04-20 18:01:41 +0900 |
commit | 589bb1db6db6784efe21b3fbbfbfdb79aaa5f14e (patch) | |
tree | 47a2b23ce4220e3a4150c8b12ed941555272fb0c /infra/cmake | |
parent | 62529acabbafce7730601ed01d5709d7bc0d378a (diff) | |
download | nnfw-589bb1db6db6784efe21b3fbbfbfdb79aaa5f14e.tar.gz nnfw-589bb1db6db6784efe21b3fbbfbfdb79aaa5f14e.tar.bz2 nnfw-589bb1db6db6784efe21b3fbbfbfdb79aaa5f14e.zip |
Imported Upstream version 1.15.0upstream/1.15.0submit/tizen/20210427.093759submit/tizen/20210423.055448submit/tizen/20210422.015846submit/tizen/20210421.062230accepted/tizen/unified/20210428.040443
Diffstat (limited to 'infra/cmake')
-rw-r--r-- | infra/cmake/modules/IdentifyPlatform.cmake | 4 | ||||
-rw-r--r-- | infra/cmake/packages/ARMComputeSourceConfig.cmake | 2 | ||||
-rw-r--r-- | infra/cmake/packages/AbseilSourceConfig.cmake | 11 | ||||
-rw-r--r-- | infra/cmake/packages/OouraFFTSourceConfig.cmake | 19 |
4 files changed, 27 insertions, 9 deletions
diff --git a/infra/cmake/modules/IdentifyPlatform.cmake b/infra/cmake/modules/IdentifyPlatform.cmake index 69fe48cad..cf56dd086 100644 --- a/infra/cmake/modules/IdentifyPlatform.cmake +++ b/infra/cmake/modules/IdentifyPlatform.cmake @@ -39,6 +39,8 @@ elseif("${HOST_ARCH}" STREQUAL "armv7l") set(HOST_ARCH_BASE "arm") elseif("${HOST_ARCH}" STREQUAL "aarch64") set(HOST_ARCH_BASE "aarch64") +elseif("${HOST_ARCH}" STREQUAL "i686") + set(HOST_ARCH_BASE "i686") else() message(FATAL_ERROR "'${HOST_ARCH}' architecture is not supported") endif() @@ -49,6 +51,8 @@ elseif("${TARGET_ARCH}" STREQUAL "armv7l") set(TARGET_ARCH_BASE "arm") elseif("${TARGET_ARCH}" STREQUAL "aarch64") set(TARGET_ARCH_BASE "aarch64") +elseif("${TARGET_ARCH}" STREQUAL "i686") + set(TARGET_ARCH_BASE "i686") else() message(FATAL_ERROR "'${TARGET_ARCH}' architecture is not supported") endif() diff --git a/infra/cmake/packages/ARMComputeSourceConfig.cmake b/infra/cmake/packages/ARMComputeSourceConfig.cmake index 0ffa0cd35..16e12bbca 100644 --- a/infra/cmake/packages/ARMComputeSourceConfig.cmake +++ b/infra/cmake/packages/ARMComputeSourceConfig.cmake @@ -8,7 +8,7 @@ function(_ARMComputeSource_import) nnas_include(OptionTools) envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com") - set(ARMCOMPUTE_URL ${EXTERNAL_DOWNLOAD_SERVER}/ARM-software/ComputeLibrary/archive/v20.05.tar.gz) + set(ARMCOMPUTE_URL ${EXTERNAL_DOWNLOAD_SERVER}/ARM-software/ComputeLibrary/archive/v21.02.tar.gz) ExternalSource_Download(ARMCOMPUTE ${ARMCOMPUTE_URL}) set(ARMComputeSource_DIR ${ARMCOMPUTE_SOURCE_DIR} PARENT_SCOPE) diff --git a/infra/cmake/packages/AbseilSourceConfig.cmake b/infra/cmake/packages/AbseilSourceConfig.cmake index 8be732660..8aeb86db3 100644 --- a/infra/cmake/packages/AbseilSourceConfig.cmake +++ b/infra/cmake/packages/AbseilSourceConfig.cmake @@ -7,19 +7,14 @@ function(_AbseilSource_import) nnas_include(ExternalSourceTools) nnas_include(OptionTools) - # NOTE TensorFlow 1.12 downloads abseil from the following URL - # - https://github.com/abseil/abseil-cpp/archive/48cd2c3f351ff188bc85684b84a91b6e6d17d896.tar.gz - # - # The last change of "48cd2c3f351" was commited on 2018.09.27 - # - # Let's use the latest released version (2020-02 release patch 2) + # NOTE TensorFlow 2.3 downloads abseil from the following URL envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com") - envoption(ABSEIL_URL ${EXTERNAL_DOWNLOAD_SERVER}/abseil/abseil-cpp/archive/20200225.2.tar.gz) + envoption(ABSEIL_URL ${EXTERNAL_DOWNLOAD_SERVER}/abseil/abseil-cpp/archive/df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz) ExternalSource_Download(ABSEIL DIRNAME ABSEIL URL ${ABSEIL_URL} - CHECKSUM MD5=73f2b6e72f1599a9139170c29482ddc4) + CHECKSUM MD5=4d9aa7e757adf48fef171c85f0d88552) set(AbseilSource_DIR ${ABSEIL_SOURCE_DIR} PARENT_SCOPE) set(AbseilSource_FOUND TRUE PARENT_SCOPE) diff --git a/infra/cmake/packages/OouraFFTSourceConfig.cmake b/infra/cmake/packages/OouraFFTSourceConfig.cmake new file mode 100644 index 000000000..be551fbe4 --- /dev/null +++ b/infra/cmake/packages/OouraFFTSourceConfig.cmake @@ -0,0 +1,19 @@ +function(_OouraFFTSource_import) + if(NOT DOWNLOAD_OOURAFFT) + set(OouraFFTSource_FOUND FALSE PARENT_SCOPE) + return() + endif(NOT DOWNLOAD_OOURAFFT) + + nnas_include(ExternalSourceTools) + nnas_include(OptionTools) + + # NOTE TensorFlow 2.3 downloads OOURAFFT from the following URL + envoption(OOURAFFT_URL https://github.com/petewarden/OouraFFT/archive/v1.0.tar.gz) + + ExternalSource_Download(OOURAFFT ${OOURAFFT_URL}) + + set(OouraFFTSource_DIR ${OOURAFFT_SOURCE_DIR} PARENT_SCOPE) + set(OouraFFTSource_FOUND TRUE PARENT_SCOPE) +endfunction(_OouraFFTSource_import) + +_OouraFFTSource_import() |