From 8b39043c70332e1e4c95ee6a9616aec40dd3baf1 Mon Sep 17 00:00:00 2001 From: James Ward Date: Fri, 12 Aug 2022 20:48:56 +0100 Subject: Reference model changes for fp16 support Change-Id: I72f21fcfa153046274969d327313e3349981dbe6 Signed-off-by: James Ward --- reference_model/CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'reference_model/CMakeLists.txt') diff --git a/reference_model/CMakeLists.txt b/reference_model/CMakeLists.txt index a790968..04b0db5 100644 --- a/reference_model/CMakeLists.txt +++ b/reference_model/CMakeLists.txt @@ -43,7 +43,7 @@ else() set(SERIALIZATION_DIR "../thirdparty/serialization_lib/") endif() -# If Flatbuffers or Eigen path isn't specified, set to thirdparty directory. +# If Flatbuffers, Eigen, Half path isn't specified, set to thirdparty directory. if(NOT FLATBUFFERS_DIR) set(FLATBUFFERS_DIR "../thirdparty/serialization_lib/third_party/flatbuffers/") endif() @@ -52,6 +52,10 @@ if(NOT EIGEN_DIR) set(EIGEN_DIR "../thirdparty/eigen/") endif() +if(NOT HALF_DIR) + set(HALF_DIR "../thirdparty/serialization_lib/third_party/half") +endif() + include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) # Common sources required for TOSA Reference Model library, executable and unit tests @@ -92,6 +96,7 @@ target_include_directories(tosa_reference_model_lib ${EIGEN_DIR} ${EIGEN_DIR}/unsupported/ ${SERIALIZATION_DIR}/include + ${HALF_DIR}/include ) target_link_libraries(tosa_reference_model_lib @@ -130,6 +135,7 @@ if(BUILD_TOSA_REFERENCE_MODEL_EXECUTABLE) ${EIGEN_DIR} ${EIGEN_DIR}/unsupported/ ${SERIALIZATION_DIR}/include + ${HALF_DIR}/include ) target_link_libraries(tosa_reference_model @@ -171,6 +177,7 @@ if(BUILD_TOSA_REFERENCE_MODEL_TESTS) ${EIGEN_DIR} ${EIGEN_DIR}/unsupported/ ${SERIALIZATION_DIR}/include + ${HALF_DIR}/include ${DOCTEST_DIR} ) @@ -203,6 +210,7 @@ if(BUILD_MODEL_RUNNER_SAMPLE) ${EIGEN_DIR} ${EIGEN_DIR}/unsupported/ ${SERIALIZATION_DIR}/include + ${HALF_DIR}/include ) target_link_libraries(model_runner_sample -- cgit v1.2.1