36 lines
1.2 KiB
CMake
36 lines
1.2 KiB
CMake
#
|
|
# Copyright 2024 The TensorFlow Authors. All Rights Reserved.
|
|
#
|
|
# 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
|
|
#
|
|
# https://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.
|
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.5 FATAL_ERROR)
|
|
|
|
PROJECT(fp16-download NONE)
|
|
|
|
# Set file timestamps to the time of extraction.
|
|
IF(POLICY CMP0135)
|
|
CMAKE_POLICY(SET CMP0135 NEW)
|
|
ENDIF()
|
|
|
|
INCLUDE(ExternalProject)
|
|
ExternalProject_Add(fp16
|
|
URL https://github.com/Maratyszcza/FP16/archive/0a92994d729ff76a58f692d3028ca1b64b145d91.zip
|
|
URL_HASH SHA256=e66e65515fa09927b348d3d584c68be4215cfe664100d01c9dbc7655a5716d70
|
|
SOURCE_DIR "${CMAKE_BINARY_DIR}/FP16-source"
|
|
BINARY_DIR "${CMAKE_BINARY_DIR}/FP16"
|
|
CONFIGURE_COMMAND ""
|
|
BUILD_COMMAND ""
|
|
INSTALL_COMMAND ""
|
|
TEST_COMMAND ""
|
|
)
|